Class NodeFactory.WWWR<K,​V>

    • Constructor Detail

      • WWWR

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

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

      • casWriteTime

        public final boolean casWriteTime​(long expect,
                                          long update)
        Description copied from interface: 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.