Class FDAWR<K,V>

All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,V>>, NodeFactory<K,V>, WriteOrderDeque.WriteOrder<Node<K,V>>
Direct Known Subclasses:
FDAWRMS, FDAWRMW

class FDAWR<K,V> extends FDAW<K,V>
WARNING: GENERATED CODE A cache entry that provides the following features:
  • RefreshWrite
  • WeakKeys (inherited)
  • SoftValues (inherited)
  • ExpireAccess (inherited)
  • ExpireWrite (inherited)
  • Constructor Details

  • Method Details

    • getPreviousInVariableOrder

      public Node<K,V> getPreviousInVariableOrder()
      Overrides:
      getPreviousInVariableOrder in class FDAW<K,V>
    • setPreviousInVariableOrder

      public void setPreviousInVariableOrder(Node<K,V> previousInWriteOrder)
      Overrides:
      setPreviousInVariableOrder in class FDAW<K,V>
    • getNextInVariableOrder

      public Node<K,V> getNextInVariableOrder()
      Overrides:
      getNextInVariableOrder in class FDAW<K,V>
    • setNextInVariableOrder

      public void setNextInVariableOrder(Node<K,V> nextInWriteOrder)
      Overrides:
      setNextInVariableOrder in class FDAW<K,V>
    • getVariableTime

      public long getVariableTime()
      Description copied from class: Node
      Returns the variable expiration time, in nanoseconds.
      Overrides:
      getVariableTime in class FDAW<K,V>
    • setVariableTime

      public void setVariableTime(long accessTime)
      Description copied from class: Node
      Sets the variable expiration time in nanoseconds. This update may be set lazily and rely on the memory fence when the lock is released.
      Overrides:
      setVariableTime in class FDAW<K,V>
    • casVariableTime

      public boolean casVariableTime(long expect, long update)
      Description copied from class: Node
      Atomically sets the variable time to the given updated value if the current value equals the expected value and returns if the update was successful.
      Overrides:
      casVariableTime in class FDAW<K,V>
    • casWriteTime

      public final boolean casWriteTime(long expect, long update)
      Description copied from class: 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.
      Overrides:
      casWriteTime in class Node<K,V>
    • newNode

      public Node<K,V> newNode(K key, ReferenceQueue<K> keyReferenceQueue, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now)
      Description copied from interface: NodeFactory
      Returns a node optimized for the specified features.
      Specified by:
      newNode in interface NodeFactory<K,V>
      Overrides:
      newNode in class FDAW<K,V>
    • newNode

      public Node<K,V> newNode(Object keyReference, V value, ReferenceQueue<V> valueReferenceQueue, int weight, long now)
      Description copied from interface: NodeFactory
      Returns a node optimized for the specified features.
      Specified by:
      newNode in interface NodeFactory<K,V>
      Overrides:
      newNode in class FDAW<K,V>