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>
next
private static long
NEXT_OFFSET
private E
value
-
Constructor Summary
Constructors Constructor Description LinkedQueueNode()
LinkedQueueNode(E val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
getAndNullValue()
Gets the current value and nulls out the reference to it from this node.E
lpValue()
LinkedQueueNode<E>
lvNext()
void
soNext(LinkedQueueNode<E> n)
void
spNext(LinkedQueueNode<E> n)
void
spValue(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()
-
-