Tabnine Logo
Terminator
Code IndexAdd Tabnine to your IDE (free)

How to use
Terminator
in
com.obsidiandynamics.worker

Best Java code snippets using com.obsidiandynamics.worker.Terminator (Showing top 9 results out of 315)

origin: com.obsidiandynamics.jackdaw/jackdaw-core

@Override
public Joinable terminate() {
 Terminator.blank().add(Optional.ofNullable(thread)).terminate();
 return this;
}
origin: com.obsidiandynamics.fulcrum/fulcrum-worker

public static Terminator of(Terminable... terminables) {
 return new Terminator().add(terminables);
}

origin: com.obsidiandynamics.blackstrom/blackstrom-core

@Override
public Joinable terminate() {
 synchronized (terminateLock) {
  // as flows are created lazily, it's possible that some flows are created after termination of
  // this container; this flag ensures that new flows are stillborn
  terminated = true;
  Terminator.of(createdFlows).terminate();
 }
 return this;
}
origin: com.obsidiandynamics.fulcrum/fulcrum-worker

 public static Terminator blank() {
  return new Terminator();
 }
}
origin: com.obsidiandynamics.blackstrom/blackstrom-core

 @Override
 public void dispose() {
  Terminator.blank()
  .add(Optional.ofNullable(gcThread))
  .add(timeoutThread)
  .terminate()
  .joinSilently();
 }
}
origin: com.obsidiandynamics.fulcrum/fulcrum-worker

public static Terminator of(Collection<? extends Terminable> terminables) {
 return new Terminator().add(terminables);
}

origin: com.obsidiandynamics.blackstrom/blackstrom-core

 @Override
 public void dispose() {
  Terminator.of(threads).terminate().joinSilently();
 }
}
origin: com.obsidiandynamics.jackdaw/jackdaw-core

@Override
public Joinable terminate() {
 Terminator.blank().add(Optional.ofNullable(thread)).terminate();
 closeProducer();
 return this;
}

origin: com.obsidiandynamics.meteor/meteor-core

@Override
public Joinable terminate() {
 if (leaseCandidate != null) {
  deactivate(ExceptionHandler.nop());
 }
 
 Terminator.blank()
 .add(Optional.ofNullable(receiver))
 .add(Optional.ofNullable(keeperThread))
 .add(Optional.ofNullable(election))
 .terminate();
 return this;
}
com.obsidiandynamics.workerTerminator

Javadoc

An accumulator for composing operations over instances of type Terminable. Rather than terminating each individual instance, the latter can be added to this accumulator (itself being a Terminable) and collectively terminated with a single method call.

Most used methods

  • add
  • blank
  • terminate
  • <init>
  • of

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • Menu (java.awt)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ImageIO (javax.imageio)
  • CodeWhisperer alternatives
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