Class NodeFactory.SWWR<K,​V>

    • Constructor Detail

      • SWWR

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

        SWWR​(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.