Package org.jctools.queues
Class LinkedQueueNode<E>
- java.lang.Object
-
- org.jctools.queues.LinkedQueueNode<E>
-
final class LinkedQueueNode<E> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private LinkedQueueNode<E>nextprivate static longNEXT_OFFSETprivate Evalue
-
Constructor Summary
Constructors Constructor Description LinkedQueueNode()LinkedQueueNode(E val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EgetAndNullValue()Gets the current value and nulls out the reference to it from this node.ElpValue()LinkedQueueNode<E>lvNext()voidsoNext(LinkedQueueNode<E> n)voidspNext(LinkedQueueNode<E> n)voidspValue(E newValue)
-
-
-
Field Detail
-
NEXT_OFFSET
private static final long NEXT_OFFSET
-
value
private E value
-
next
private volatile LinkedQueueNode<E> next
-
-
Constructor Detail
-
LinkedQueueNode
LinkedQueueNode()
-
LinkedQueueNode
LinkedQueueNode(E val)
-
-
Method Detail
-
getAndNullValue
public E getAndNullValue()
Gets the current value and nulls out the reference to it from this node.- Returns:
- value
-
lpValue
public E lpValue()
-
spValue
public void spValue(E newValue)
-
soNext
public void soNext(LinkedQueueNode<E> n)
-
spNext
public void spNext(LinkedQueueNode<E> n)
-
lvNext
public LinkedQueueNode<E> lvNext()
-
-