Esempio n. 1
0
 public void cancel() {
   if (state.getAndSet(State.CANCELED) != State.CANCELED) {
     storage.cancel(uuid);
     synchronized (this) {
       for (Future<?> task : asyncTasks) {
         task.cancel(true);
       }
     }
   }
 }
Esempio n. 2
0
 @Override
 protected void submit(NearlineStorage storage, Iterable<RemoveRequestImpl> requests) {
   storage.remove(transform(requests, Functions.<RemoveRequest>identity()));
 }