Class FDAWMW<K,​V>

    • Field Detail

      • queueType

        int queueType
      • weight

        int weight
      • policyWeight

        int policyWeight
    • Constructor Detail

      • FDAWMW

        FDAWMW()
      • FDAWMW

        FDAWMW​(K key,
               java.lang.ref.ReferenceQueue<K> keyReferenceQueue,
               V value,
               java.lang.ref.ReferenceQueue<V> valueReferenceQueue,
               int weight,
               long now)
      • FDAWMW

        FDAWMW​(java.lang.Object keyReference,
               V value,
               java.lang.ref.ReferenceQueue<V> valueReferenceQueue,
               int weight,
               long now)
    • Method Detail

      • 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,
                                       java.lang.ref.ReferenceQueue<K> keyReferenceQueue,
                                       V value,
                                       java.lang.ref.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​(java.lang.Object keyReference,
                                       V value,
                                       java.lang.ref.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>