Package org.jctools.queues.intrusive
Class NodeImpl
- java.lang.Object
-
- java.util.concurrent.atomic.AtomicReference<Node>
-
- org.jctools.queues.intrusive.NodeImpl
-
- All Implemented Interfaces:
java.io.Serializable,Node
public class NodeImpl extends java.util.concurrent.atomic.AtomicReference<Node> implements Node
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodegetNext()voidsetNext(Node next)Stores a pointer to the next node in the linked queue structure.-
Methods inherited from class java.util.concurrent.atomic.AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
-
-
-
Method Detail
-
setNext
public void setNext(Node next)
Description copied from interface:NodeStores a pointer to the next node in the linked queue structure. This corresponds to mpscq_node_t.next in the 1024cores post Intrusive MPSC node-based queue. Note the volatile semantics of the stores in the algorithm.
-
-