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

How to use
peekNode
method
in
akka.dispatch.AbstractNodeQueue

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

origin: com.typesafe.akka/akka-actor

/**
 * Query the queue tail for the next element without dequeuing it.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: com.typesafe.akka/akka-actor_2.11

/**
 * Query the queue tail for the next element without dequeuing it.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: com.typesafe.akka/akka-actor_2.10

/**
 * Query the queue tail for the next element without dequeuing it.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: com.typesafe.akka/akka-actor_2.12

/**
 * Query the queue tail for the next element without dequeuing it.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: com.data-artisans/flakka-actor_2.10

/**
 * Query the queue tail for the next element without dequeuing it.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: com.data-artisans/flakka-actor_2.11

/**
 * Query the queue tail for the next element without dequeuing it.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return element if there was one, or null if there was none
 */
public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: org.spark-project.akka/akka-actor_2.10

public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: org.spark-project.akka/akka-actor_2.11

public final T peek() {
  final Node<T> n = peekNode();
  return (n != null) ? n.value : null;
}
origin: org.spark-project.akka/akka-actor_2.10

public final T poll() {
  final Node<T> next = peekNode();
  if (next == null) return null;
  else {
    final T ret = next.value;
    next.value = null;
    Unsafe.instance.putOrderedObject(this, tailOffset, next);
    return ret;
  }
}

origin: org.spark-project.akka/akka-actor_2.11

public final int count() {
  int count = 0;
  for(Node<T> n = peekNode();n != null; n = n.next())
   ++count;
  return count;
}
origin: org.spark-project.akka/akka-actor_2.11

public final T poll() {
  final Node<T> next = peekNode();
  if (next == null) return null;
  else {
    final T ret = next.value;
    next.value = null;
    Unsafe.instance.putOrderedObject(this, tailOffset, next);
    return ret;
  }
}

origin: org.spark-project.akka/akka-actor_2.10

public final int count() {
  int count = 0;
  for(Node<T> n = peekNode();n != null; n = n.next())
   ++count;
  return count;
}
akka.dispatchAbstractNodeQueuepeekNode

Javadoc

Query the queue tail for the next element without dequeuing it. Use this method only from the consumer thread! !!! There is a copy of this code in pollNode() !!!

Popular methods of AbstractNodeQueue

  • get
  • getAndSet
  • set
  • pollNode
    Pull one item from the queue, returning it within a queue node. Use this method only from the consum
  • peek
    Query the queue tail for the next element without dequeuing it. Use this method only from the consum

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top Sublime Text 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