Class PDAWRMW<K,V>

All Implemented Interfaces:
AccessOrderDeque.AccessOrder<Node<K,V>>, NodeFactory<K,V>, WriteOrderDeque.WriteOrder<Node<K,V>>

final class PDAWRMW<K,V> extends PDAWR<K,V>
WARNING: GENERATED CODE A cache entry that provides the following features:
  • MaximumWeight
  • StrongKeys (inherited)
  • SoftValues (inherited)
  • ExpireAccess (inherited)
  • ExpireWrite (inherited)
  • RefreshWrite (inherited)
  • Field Details

    • queueType

      int queueType
    • weight

      int weight
    • policyWeight

      int policyWeight
  • Constructor Details

  • Method Details

    • getQueueType

      public int getQueueType()
      Description copied from class: Node
      Returns the queue that the entry's resides in (window, probation, or protected).
      Overrides:
      getQueueType in class Node<K,V>
    • setQueueType

      public void setQueueType(int queueType)
      Description copied from class: Node
      Set queue that the entry resides in (window, probation, or protected).
      Overrides:
      setQueueType in class Node<K,V>
    • getWeight

      public int getWeight()
      Description copied from class: Node
      Returns the weight of this entry from the entry's perspective.
      Overrides:
      getWeight in class Node<K,V>
    • setWeight

      public void setWeight(int weight)
      Description copied from class: Node
      Sets the weight from the entry's perspective.
      Overrides:
      setWeight in class Node<K,V>
    • getPolicyWeight

      public int getPolicyWeight()
      Description copied from class: Node
      Returns the weight of this entry from the policy's perspective.
      Overrides:
      getPolicyWeight in class Node<K,V>
    • setPolicyWeight

      public void setPolicyWeight(int policyWeight)
      Description copied from class: Node
      Sets the weight from the policy's perspective.
      Overrides:
      setPolicyWeight 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 PDAWR<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 PDAWR<K,V>