Examples of cancel()


Examples of akka.actor.Cancellable.cancel()

    Cancellable cancellable = system.scheduler().schedule(Duration.Zero(),
    Duration.create(50, TimeUnit.MILLISECONDS), tickActor, "Tick",
    system.dispatcher(), null);

    //This cancels further Ticks to be sent
    cancellable.cancel();
    //#schedule-recurring
    system.stop(tickActor);
  }
}
View Full Code Here

Examples of artofillusion.util.ThreadManager.cancel()

      {
        if (canceled.get())
          errorCount.incrementAndGet();
        if (index == 500)
        {
          tm.cancel();
          canceled.set(true);
        }
      }
      public void cleanup()
      {
View Full Code Here

Examples of au.edu.qut.yawl.engine.YNetRunner.cancel()

            Iterator iter = activeChildIdentifiers.iterator();
            while (iter.hasNext()) {
                YIdentifier identifier = (YIdentifier) iter.next();
                YNetRunner netRunner = _workItemRepository.getNetRunner(identifier);
                if (netRunner != null) {
                    netRunner.cancel(pmgr);
                }
            }
        }
        super.cancel(pmgr);
    }
View Full Code Here

Examples of azkaban.flow.ExecutableFlow.cancel()

            ExecutableFlow flow = curr.getExecutableFlow();
            final String flowId = flow.getId();
            if(flowId.equals(jobId)) {
                final String flowName = flow.getName();
                try {
                    if(flow.cancel()) {
                        addMessage(req, "Cancelled " + flowName);
                        logger.info("Job '" + flowName + "' cancelled from gui.");
                    } else {
                        logger.info("Couldn't cancel flow '" + flowName + "' for some reason.");
                        addError(req, "Failed to cancel flow " + flowName + ".");
View Full Code Here

Examples of ch.ethz.inf.vs.californium.coap.Request.cancel()

      Request request = new Request(null);
      request.setType(Type.CON);
      request.setToken(new byte[0]);
      request.setURI(uri);
      request.send().waitForResponse(5000);
      request.cancel();
      return request.isRejected();
    } catch (InterruptedException e) {
      // waiting was interrupted, which is fine
    }
    return false;
View Full Code Here

Examples of ch.ethz.inf.vs.californium.observe.ObserveRelation.cancel()

      if (exchange.getRequest().isAcknowledged() || exchange.getRequest().getType()==Type.NON) {
        // Transmit errors as CON
        if (!ResponseCode.isSuccess(response.getCode())) {
          LOGGER.fine("Response has error code "+response.getCode()+" and must be sent as CON");
          response.setType(Type.CON);
          relation.cancel();
        } else {
          // Make sure that every now and than a CON is mixed within
          if (relation.check()) {
            LOGGER.fine("The observe relation requires the notification to be sent as CON");
            response.setType(Type.CON);
View Full Code Here

Examples of ch.njol.skript.util.Task.cancel()

   */
  public final void saveVariables(final boolean finalSave) {
    if (finalSave) {
      final Task st = saveTask;
      if (st != null)
        st.cancel();
      final Task bt = backupTask;
      if (bt != null)
        bt.cancel();
    }
    try {
View Full Code Here

Examples of ch.tatool.element.Executable.cancel()

    private void stopCurrentCycle() {
        // stop a currently running task
        Executable executable = currentExecutable;
        if (executable != null) {
            logger.info("cancelTask: Cancelling executable " + executable.getId());
            executable.cancel();
        }
       
        // stop currently running phase executable
        PhaseRunnable phaseRunnable = currentPhaseExecutable;
        if (phaseRunnable != null) {
View Full Code Here

Examples of code.satyagraha.gfm.viewer.bots.PreferencesBot.cancel()

        MarkdownViewBot markdownViewBot1 = MarkdownViewBot.open();
        assertThat(MarkdownViewBot.isPresent(), is(true));
        SWTUtils.sleep(2000);

        PreferencesBot preferencesBot = markdownViewBot1.showPreferences();
        preferencesBot.cancel();

        markdownViewBot1.close();
    }

    @Test
View Full Code Here

Examples of com.aelitis.azureus.core.networkmanager.impl.tcp.VirtualChannelSelectorImpl.cancel()

         
          VirtualChannelSelectorImpl       sel     = entry.getKey();
          ArrayList<AbstractSelectableChannel>   channels   = entry.getValue();
         
          if( channels.remove( channel ) ) {
            sel.cancel( channel );
            return;
          }
        }
      }
      finally{ selectors_mon.exit()}
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.