Examples of cancel()


Examples of org.gudy.azureus2.plugins.peers.PeerReadRequest.cancel()

     
      PeerReadRequest  req = requests.get(i);

      if ( !req.isCancelled()){
       
        req.cancel();
      }
    }
  }
 
  public void
View Full Code Here

Examples of org.gudy.azureus2.plugins.update.UpdateCheckInstance.cancel()

      to_cancel = instance;
    }
   
    if ( to_cancel != null ){
     
      to_cancel.cancel();
    }
   
    action_listener.actionComplete( new Exception( "Cancelled" ));
  }
   
View Full Code Here

Examples of org.gudy.azureus2.pluginsimpl.local.update.UpdateCheckInstanceImpl.cancel()

     
      return( inst );
     
    }catch( Throwable e ){
     
      inst.cancel();
     
      if ( e instanceof PluginException ){
       
        throw((PluginException)e);
      }else{
View Full Code Here

Examples of org.h2.command.Command.cancel()

            if (s.getId() == targetSessionId) {
                Command c = s.getCurrentCommand();
                if (c == null) {
                    return false;
                }
                c.cancel();
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.h2.command.CommandInterface.cancel()

            checkClosed();
            // executingCommand can be reset  by another thread
            CommandInterface c = executingCommand;
            try {
                if (c != null) {
                    c.cancel();
                }
            } finally {
                setExecutingStatement(null);
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.hive2hive.core.processes.framework.abstracts.ProcessComponent.cancel()

  @Override
  protected void doRollback(RollbackReason reason) throws InvalidProcessStateException {

    while (!components.isEmpty() && rollbackIndex >= 0 && getState() == ProcessState.ROLLBACKING) {
      ProcessComponent last = components.get(rollbackIndex);
      last.cancel(reason);
      rollbackIndex--;
    }
  }

  @Override
View Full Code Here

Examples of org.hive2hive.core.processes.implementations.userprofiletask.TestPutUserProfileTaskStep.cancel()

    AsyncComponent component = new AsyncComponent(putStep);
    component.attachListener(listener);

    // start and cancel immediately
    component.start();
    putStep.cancel(new RollbackReason("Testing whether rollback works."));
    UseCaseTestUtil.waitTillFailed(listener, 10);

    Parameters parameters = new Parameters().setLocationKey(userId).setDomainKey(H2HConstants.USER_PROFILE_TASK_DOMAIN)
        .setContentKey(userProfileTask.getContentKey());
    FutureGet futureGet = node.getDataManager().getUnblocked(parameters);
View Full Code Here

Examples of org.hornetq.core.client.impl.LargeMessageBufferImpl.cancel()

      t.start();

      latchGo.await();

      buffer.cancel();

      t.join();

      Assert.assertEquals(0, errorCount.get());
View Full Code Here

Examples of org.hornetq.core.client.impl.LargeMessageControllerImpl.cancel()

      t.start();

      latchGo.await();

      buffer.cancel();

      t.join();

      Assert.assertEquals(0, errorCount.get());
View Full Code Here

Examples of org.hornetq.core.server.Queue.cancel()

      {
         refqueue = ref2.getQueue();

         try
         {
            refqueue.cancel(ref2, timeBase);
         }
         catch (Exception e)
         {
            // There isn't much we can do besides log an error
            log.error("Couldn't cancel reference " + ref2, e);
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.