Examples of cancel()


Examples of net.rubyeye.xmemcached.command.Command.cancel()

      commands.add(command);

    }
    if (!latch.await(timeout, TimeUnit.MILLISECONDS)) {
      for (Command command : commands) {
        command.cancel();
      }
      throw new TimeoutException("Timed out waiting for operation");
    }
    for (Command command : commands) {
      this.checkException(command);
View Full Code Here

Examples of net.sf.jabref.export.SaveSession.cancel()

            if (commit) {
                session.commit();
                this.encoding = encoding; // Make sure to remember which encoding we used.
            }
            else
                session.cancel();
        } catch (IOException e) {
            e.printStackTrace();
        }

        return commit;
View Full Code Here

Examples of net.sf.jml.impl.MsnFileTransferImpl.cancel()

        if(ft == null)
            return;

        ft.setContact(contact);
        ft.cancel(false);
  }
}
View Full Code Here

Examples of net.sf.mzmine.taskcontrol.Task.cancel()

      if (selectedTask == null)
        return;
      TaskStatus status = selectedTask.getStatus();
      if ((status == TaskStatus.WAITING)
          || (status == TaskStatus.PROCESSING)) {
        selectedTask.cancel();
      }
    }

    if (src == cancelAllMenuItem) {
      for (WrappedTask wrappedTask : currentQueue) {
View Full Code Here

Examples of net.spy.memcached.internal.GetFuture.cancel()

    synchronized (monitoredFutures) {
      Iterator it = monitoredFutures.iterator();
      while (it.hasNext()) {
        GetFuture future = (GetFuture) it.next();
        if (!future.equals(successFuture)) {
          future.cancel(true);
        }
      }
    }
  }
View Full Code Here

Examples of net.spy.memcached.ops.Operation.cancel()

    // Now cancel all the pending read operations.  Might be better to
    // to requeue them.
    while(hasReadOp()) {
      op=removeCurrentReadOp();
      getLogger().warn("Discarding partially completed op: %s", op);
      op.cancel();
    }

    getWbuf().clear();
    getRbuf().clear();
    toWrite=0;
View Full Code Here

Examples of net.tomp2p.futures.BaseFuture.cancel()

  private static void cancel(final AtomicReferenceArray<FutureResponse> futures) {
    int len = futures.length();
    for (int i = 0; i < len; i++) {
      BaseFuture baseFuture = futures.get(i);
      if (baseFuture != null) {
        baseFuture.cancel();
      }
    }
  }

  /**
 
View Full Code Here

Examples of net.tomp2p.futures.FutureResponse.cancel()

            putBuilder.versionKey(Number160.ZERO);

            FutureResponse fr = smmSender.put(recv1.peerAddress(), putBuilder, cc);

            Thread.sleep(5);
            fr.cancel();
            Assert.assertEquals(false, fr.isSuccess());
            System.err.println("good!");
        } finally {
            if (cc != null) {
                cc.shutdown().awaitListenersUninterruptibly();
View Full Code Here

Examples of net.tomp2p.relay.PeerMapUpdateTask.cancel()

    peer.connectionBean().timer().scheduleAtFixedRate(peerMapUpdateTask, 0, peerMapUpdateInterval(), TimeUnit.SECONDS);

    final Shutdown shutdown = new Shutdown() {
      @Override
      public BaseFuture shutdown() {
        peerMapUpdateTask.cancel();
        return new FutureDone<Void>().done();
      }
    };
    peer.addShutdownListener(shutdown);
View Full Code Here

Examples of nexj.core.runtime.InvocationContext.cancel()

            {
               InvocationContext context = (InvocationContext)itr.next();
              
               try
               {
                  context.cancel();
                 
                  if (((Boolean)itr.getValue()).booleanValue())
                  {
                     context.complete(false);
                  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.