Tabnine Logo
Flow.terminate
Code IndexAdd Tabnine to your IDE (free)

How to use
terminate
method
in
com.obsidiandynamics.flow.Flow

Best Java code snippets using com.obsidiandynamics.flow.Flow.terminate (Showing top 1 results out of 315)

origin: com.obsidiandynamics.blackstrom/blackstrom-core

@Override
public Confirmation begin(MessageContext context, Message message) {
 final Flow flow = flows.computeIfAbsent(message.getShard(), shard -> {
  final Flow newFlow = new Flow(firingStrategyFactory, Flow.class.getSimpleName() + "-shard-[" + shard + "]");
  synchronized (terminateLock) {
   createdFlows.add(newFlow);
   if (terminated) {
    // the container was already terminated -- terminate the newly created flow; the resulting Confirmation
    // objects won't do anything
    newFlow.terminate();
   }
  }
  return newFlow;
 });
 final MessageId messageId = message.getMessageId();
 return flow.begin(messageId, new ConfirmTask(context, messageId));
}
com.obsidiandynamics.flowFlowterminate

Javadoc

Terminates the flow, shutting down the worker thread and preventing further task executions.

Popular methods of Flow

  • <init>
  • begin
  • complete
  • removeWithoutCompleting

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Join (org.hibernate.mapping)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now