Class 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
      Node getNext()  
      void setNext​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NodeImpl

        public NodeImpl()
    • Method Detail

      • setNext

        public void setNext​(Node next)
        Description copied from interface: Node
        Stores 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.
        Specified by:
        setNext in interface Node
      • getNext

        public Node getNext()
        Specified by:
        getNext in interface Node