Class FDAWRMS<K,​V>

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

    final class FDAWRMS<K,​V>
    extends FDAWR<K,​V>
    WARNING: GENERATED CODE A cache entry that provides the following features:
    • MaximumSize
    • WeakKeys (inherited)
    • SoftValues (inherited)
    • ExpireAccess (inherited)
    • ExpireWrite (inherited)
    • RefreshWrite (inherited)
    • Field Detail

      • queueType

        int queueType
    • Constructor Detail

      • FDAWRMS

        FDAWRMS()
      • FDAWRMS

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

        FDAWRMS​(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 FDAWR<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 FDAWR<K,​V>