congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractNodeQueue.getAndSet
Code IndexAdd Tabnine to your IDE (free)

How to use
getAndSet
method
in
akka.dispatch.AbstractNodeQueue

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

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

/**
 * Add an element to the head of the queue.
 * 
 * This method can be used from any thread.
 * 
 * @param value the element to be added; must not be null
 */
public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

/**
 * Add an element to the head of the queue, providing the queue node to be used.
 * 
 * This method can be used from any thread.
 * 
 * @param n the node containing the element to be added; both must not be null
 */
public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
origin: com.typesafe.akka/akka-actor_2.10

/**
 * Add an element to the head of the queue.
 * 
 * This method can be used from any thread.
 * 
 * @param value the element to be added; must not be null
 */
public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

/**
 * Add an element to the head of the queue, providing the queue node to be used.
 * 
 * This method can be used from any thread.
 * 
 * @param n the node containing the element to be added; both must not be null
 */
public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
origin: com.typesafe.akka/akka-actor

/**
 * Add an element to the head of the queue, providing the queue node to be used.
 * 
 * This method can be used from any thread.
 * 
 * @param n the node containing the element to be added; both must not be null
 */
public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
origin: com.typesafe.akka/akka-actor_2.11

/**
 * Add an element to the head of the queue.
 * 
 * This method can be used from any thread.
 * 
 * @param value the element to be added; must not be null
 */
public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

/**
 * Add an element to the head of the queue, providing the queue node to be used.
 * 
 * This method can be used from any thread.
 * 
 * @param n the node containing the element to be added; both must not be null
 */
public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
origin: com.typesafe.akka/akka-actor

/**
 * Add an element to the head of the queue.
 * 
 * This method can be used from any thread.
 * 
 * @param value the element to be added; must not be null
 */
public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

/**
 * Add an element to the head of the queue.
 * 
 * This method can be used from any thread.
 * 
 * @param value the element to be added; must not be null
 */
public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

/**
 * Add an element to the head of the queue, providing the queue node to be used.
 * 
 * This method can be used from any thread.
 * 
 * @param n the node containing the element to be added; both must not be null
 */
public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
origin: com.data-artisans/flakka-actor_2.10

/**
 * Add an element to the head of the queue.
 * 
 * This method can be used from any thread.
 * 
 * @param value the element to be added; must not be null
 */
public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

/**
 * Add an element to the head of the queue, providing the queue node to be used.
 * 
 * This method can be used from any thread.
 * 
 * @param n the node containing the element to be added; both must not be null
 */
public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
origin: org.spark-project.akka/akka-actor_2.11

public final void add(final T value) {
  final Node<T> n = new Node<T>(value);
  getAndSet(n).setNext(n);
}

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

public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
origin: org.spark-project.akka/akka-actor_2.10

public final void addNode(final Node<T> n) {
  n.setNext(null);
  getAndSet(n).setNext(n);
}
akka.dispatchAbstractNodeQueuegetAndSet

Popular methods of AbstractNodeQueue

  • get
  • peekNode
    Query the queue tail for the next element without dequeuing it. Use this method only from the consum
  • 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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Kernel (java.awt.image)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • From CI to AI: The AI layer in your organization
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