Tabnine Logo
AbstractNodeQueue$Node.setNext
Code IndexAdd Tabnine to your IDE (free)

How to use
setNext
method
in
akka.dispatch.AbstractNodeQueue$Node

Best Java code snippets using akka.dispatch.AbstractNodeQueue$Node.setNext (Showing top 20 results out of 315)

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

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 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: 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, 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: 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.
 * 
 * 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

/**
 * Pull one item from the queue, returning it within a queue node.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return queue node with element inside if there was one, or null if there was none
 */
@SuppressWarnings("unchecked")
public final Node<T> pollNode() {
 final Node<T> tail = (Node<T>) Unsafe.instance.getObjectVolatile(this, tailOffset);
 Node<T> next = tail.next();
 if (next == null && get() != tail) {
   // if tail != head this is not going to change until producer makes progress
   // we can avoid reading the head and just spin on next until it shows up
   do {
     next = tail.next();
   } while (next == null);
 }
 if (next == null) return null;
 else {
  tail.value = next.value;
  next.value = null;
  Unsafe.instance.putOrderedObject(this, tailOffset, next);
  tail.setNext(null);
  return tail;
 }
}
origin: com.typesafe.akka/akka-actor_2.12

/**
 * Pull one item from the queue, returning it within a queue node.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return queue node with element inside if there was one, or null if there was none
 */
@SuppressWarnings("unchecked")
public final Node<T> pollNode() {
 final Node<T> tail = (Node<T>) Unsafe.instance.getObjectVolatile(this, tailOffset);
 Node<T> next = tail.next();
 if (next == null && get() != tail) {
   // if tail != head this is not going to change until producer makes progress
   // we can avoid reading the head and just spin on next until it shows up
   do {
     next = tail.next();
   } while (next == null);
 }
 if (next == null) return null;
 else {
  tail.value = next.value;
  next.value = null;
  Unsafe.instance.putOrderedObject(this, tailOffset, next);
  tail.setNext(null);
  return tail;
 }
}
origin: com.typesafe.akka/akka-actor_2.10

/**
 * Pull one item from the queue, returning it within a queue node.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return queue node with element inside if there was one, or null if there was none
 */
@SuppressWarnings("unchecked")
public final Node<T> pollNode() {
 final Node<T> tail = (Node<T>) Unsafe.instance.getObjectVolatile(this, tailOffset);
 Node<T> next = tail.next();
 if (next == null && get() != tail) {
   // if tail != head this is not going to change until producer makes progress
   // we can avoid reading the head and just spin on next until it shows up
   do {
     next = tail.next();
   } while (next == null);
 }
 if (next == null) return null;
 else {
  tail.value = next.value;
  next.value = null;
  Unsafe.instance.putOrderedObject(this, tailOffset, next);
  tail.setNext(null);
  return tail;
 }
}
origin: com.typesafe.akka/akka-actor_2.11

/**
 * Pull one item from the queue, returning it within a queue node.
 * 
 * Use this method only from the consumer thread!
 * 
 * @return queue node with element inside if there was one, or null if there was none
 */
@SuppressWarnings("unchecked")
public final Node<T> pollNode() {
 final Node<T> tail = (Node<T>) Unsafe.instance.getObjectVolatile(this, tailOffset);
 Node<T> next = tail.next();
 if (next == null && get() != tail) {
   // if tail != head this is not going to change until producer makes progress
   // we can avoid reading the head and just spin on next until it shows up
   do {
     next = tail.next();
   } while (next == null);
 }
 if (next == null) return null;
 else {
  tail.value = next.value;
  next.value = null;
  Unsafe.instance.putOrderedObject(this, tailOffset, next);
  tail.setNext(null);
  return tail;
 }
}
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.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_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

/**
 * 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_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.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.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);
}

akka.dispatchAbstractNodeQueue$NodesetNext

Popular methods of AbstractNodeQueue$Node

  • <init>
  • next

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JTextField (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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