121122123124125126127128129130131
synchronized (monitoredFutures) { Iterator it = monitoredFutures.iterator(); while (it.hasNext()) { GetFuture future = (GetFuture) it.next(); if (!future.equals(successFuture)) { future.cancel(true); } } } }
135136137138139140141142143144145
boolean allCancelled = true; synchronized (monitoredFutures) { Iterator it = monitoredFutures.iterator(); while (it.hasNext()) { GetFuture future = (GetFuture) it.next(); if (!future.cancel(ign)) { allCancelled = false; } } } notifyListeners();
122123124125126127128129130131132
136137138139140141142143144145146