Examples of cancel()


Examples of org.cometd.server.AbstractServerTransport.Scheduler.cancel()

                scheduler = _scheduler;
        }
        if (remove)
        {
            if (scheduler != null)
                scheduler.cancel();
            _bayeux.removeServerSession(this, true);
        }
    }

    public Set<ServerChannel> getSubscriptions()
View Full Code Here

Examples of org.crsh.shell.ShellProcess.cancel()

        waiting.wait();
      }
    }

    //
    process.cancel();

    //
    latch.await();

    //
View Full Code Here

Examples of org.drools.beliefsystem.BeliefSet.cancel()

public class TruthMaintenanceSystemHelper {

    public static void removeLogicalDependencies(final InternalFactHandle handle, final PropagationContext propagationContext ) throws FactException {
        final BeliefSet beliefSet = handle.getEqualityKey().getBeliefSet();
        if ( beliefSet != null && !beliefSet.isEmpty() ) {
            beliefSet.cancel(propagationContext);
        }
    }
   
    public static void clearLogicalDependencies(final InternalFactHandle handle, final PropagationContext propagationContext ) throws FactException {
        final BeliefSet beliefSet = handle.getEqualityKey().getBeliefSet();
View Full Code Here

Examples of org.drools.common.AgendaItem.cancel()

        }       
    }
   
    public void cancelActivation(org.drools.runtime.rule.Activation act) {
        AgendaItem match = ( AgendaItem ) act;
        match.cancel();
        if ( match.isActive() ) {
            LeftTuple leftTuple = match.getTuple();
            leftTuple.getLeftTupleSink().retractLeftTuple( leftTuple, (PropagationContext) act.getPropagationContext(), workingMemory );
        }
    }
View Full Code Here

Examples of org.drools.core.beliefsystem.BeliefSet.cancel()

public class TruthMaintenanceSystemHelper {

    public static void removeLogicalDependencies(final InternalFactHandle handle, final PropagationContext propagationContext ) {
        final BeliefSet beliefSet = handle.getEqualityKey().getBeliefSet();
        if ( beliefSet != null && !beliefSet.isEmpty() ) {
            beliefSet.cancel(propagationContext);
        }
    }
   
    public static void clearLogicalDependencies(final InternalFactHandle handle, final PropagationContext propagationContext ) {
        final BeliefSet beliefSet = handle.getEqualityKey().getBeliefSet();
View Full Code Here

Examples of org.drools.core.common.AgendaItem.cancel()

        }       
    }
   
    public void cancelMatch(Match act) {
        AgendaItem match = ( AgendaItem ) act;
        match.cancel();
        if ( match.isActive() ) {
            LeftTuple leftTuple = match.getTuple();
            leftTuple.getLeftTupleSink().retractLeftTuple( leftTuple, (PropagationContext) act.getPropagationContext(), workingMemory );
        }
    }
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants.Cancel()

            public void onClick(ClickEvent event) {
                applyChoice(self);
            }
        });

        Button cancel = new Button(constants.Cancel());
        cancel.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                hide();
            }
        });
View Full Code Here

Examples of org.drools.ruleflow.instance.RuleFlowNodeInstance.cancel()

        super.setState(state);
        if (state == ProcessInstanceImpl.STATE_COMPLETED) {
            // deactivate all node instances of this process instance
            while (!nodeInstances.isEmpty()) {
              RuleFlowNodeInstance nodeInstance = (RuleFlowNodeInstance) nodeInstances.get(0);
              nodeInstance.cancel();
            }
            workingMemory.removeEventListener((AgendaEventListener) this);
            workingMemory.removeEventListener((RuleFlowEventListener) this);
          ((EventSupport) this.workingMemory).getRuleFlowEventSupport()
            .fireRuleFlowProcessCompleted(this, this.workingMemory);
View Full Code Here

Examples of org.eclipse.core.runtime.jobs.IJobManager.cancel()

      }
      public void setCanceled(boolean value) {
        monitor.setCanceled(value);
        if (value) {
          System.err.println("ExporterBase: canceling value="+EXPORT_JOB_FAMILY);
          jobManager.cancel(EXPORT_JOB_FAMILY);
        }
      }
      public void setTaskName(String name) {
        monitor.setTaskName(name);
      }
View Full Code Here

Examples of org.eclipse.core.runtime.jobs.Job.cancel()

        // in case processing thread is handling a job
        thread.join();
      }
      Job job = this.progressJob;
      if (job != null) {
        job.cancel();
        job.join();
      }
    } catch (InterruptedException e) {
      // ignore
    }
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.