Tabnine Logo
AbstractNodeQueue.pollNode
Code IndexAdd Tabnine to your IDE (free)

How to use
pollNode
method
in
akka.dispatch.AbstractNodeQueue

Best Java code snippets using akka.dispatch.AbstractNodeQueue.pollNode (Showing top 6 results out of 315)

origin: com.typesafe.akka/akka-actor_2.10

/**
 * Pull one item from the queue’s tail if there is one.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T poll() {
  final Node<T> next = pollNode();
  if (next == null) return null;
  else {
   T value = next.value;
   next.value = null;
   return value;
  }
}

origin: com.typesafe.akka/akka-actor_2.11

/**
 * Pull one item from the queue’s tail if there is one.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T poll() {
  final Node<T> next = pollNode();
  if (next == null) return null;
  else {
   T value = next.value;
   next.value = null;
   return value;
  }
}

origin: com.typesafe.akka/akka-actor_2.12

/**
 * Pull one item from the queue’s tail if there is one.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T poll() {
  final Node<T> next = pollNode();
  if (next == null) return null;
  else {
   T value = next.value;
   next.value = null;
   return value;
  }
}

origin: com.typesafe.akka/akka-actor

/**
 * Pull one item from the queue’s tail if there is one.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T poll() {
  final Node<T> next = pollNode();
  if (next == null) return null;
  else {
   T value = next.value;
   next.value = null;
   return value;
  }
}

origin: com.data-artisans/flakka-actor_2.11

/**
 * Pull one item from the queue’s tail if there is one.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T poll() {
  final Node<T> next = pollNode();
  if (next == null) return null;
  else {
   T value = next.value;
   next.value = null;
   return value;
  }
}

origin: com.data-artisans/flakka-actor_2.10

/**
 * Pull one item from the queue’s tail if there is one.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T poll() {
  final Node<T> next = pollNode();
  if (next == null) return null;
  else {
   T value = next.value;
   next.value = null;
   return value;
  }
}

akka.dispatchAbstractNodeQueuepollNode

Javadoc

Pull one item from the queue, returning it within a queue node. Use this method only from the consumer thread!

Popular methods of AbstractNodeQueue

  • get
  • getAndSet
  • peekNode
    Query the queue tail for the next element without dequeuing it. Use this method only from the consum
  • set
  • peek
    Query the queue tail for the next element without dequeuing it. Use this method only from the consum

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JTextField (javax.swing)
  • Top plugins for WebStorm
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