Class NodeFactory.WStAR<K,V>

All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,V>>, Node<K,V>, WriteOrderDeque.WriteOrder<Node<K,V>>
Direct Known Subclasses:
NodeFactory.WStARMS, NodeFactory.WStARMW
Enclosing class:
NodeFactory

static class NodeFactory.WStAR<K,V> extends NodeFactory.WStA<K,V>
  • Field Details

    • WRITE_TIME_OFFSET

      protected static final long WRITE_TIME_OFFSET
    • writeTime

      private volatile long writeTime
  • Constructor Details

  • Method Details

    • getWriteTime

      public final long getWriteTime()
      Description copied from interface: Node
      Returns the time that this entry was last written, in ns.
    • setWriteTime

      public final void setWriteTime(long writeTime)
      Description copied from interface: Node
      Sets the write time in nanoseconds. This update may be set lazily and rely on the memory fence when the lock is released.
    • casWriteTime

      public final boolean casWriteTime(long expect, long update)
      Description copied from interface: Node
      Atomically sets the write time to the given updated value if the current value equals the expected value and returns if the update was successful.