Class PSAWMS<K,​V>

    • Field Detail

      • queueType

        int queueType
    • Constructor Detail

      • PSAWMS

        PSAWMS()
      • PSAWMS

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

        PSAWMS​(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>
      • 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 PSAW<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 PSAW<K,​V>