| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | casVariableTime(long expect, long update)
Atomically sets the variable time to the given updated value if the current value equals the expected value and returns if the update was successful. |
| public boolean | casWriteTime(long expect, long update)
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. |
| public abstract boolean | |
| public abstract void | |
| public long | |
| public abstract @Nullable K | |
| public abstract Object | |
| public @Nullable Node | getNextInAccessOrder()
Implements com. |
| public Node | |
| public @Nullable Node | getNextInWriteOrder()
Implements com. |
| public @NonNegative int | |
| public @Nullable Node | getPreviousInAccessOrder()
Implements com. |
| public Node | |
| public @Nullable Node | getPreviousInWriteOrder()
Implements com. |
| public int | |
| public abstract @Nullable V | |
| public abstract Object | |
| public long | |
| public @NonNegative int | |
| public long | |
| public boolean | |
| public boolean | |
| public boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | isRetired()
If the entry was removed from the hash-table and is awaiting removal from the page replacement policy. |
| public void | |
| public void | |
| public void | |
| public abstract void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public abstract void | setValue(V value, @Nullable ReferenceQueue<V> referenceQueue)
Sets the value, which may be held strongly, weakly, or softly. |
| public void | |
| public void | |
| public void | |
| public final String |
| PROBATION | back to summary |
|---|---|
| public static final int PROBATION | |
| PROTECTED | back to summary |
|---|---|
| public static final int PROTECTED | |
| WINDOW | back to summary |
|---|---|
| public static final int WINDOW | |
| Node | back to summary |
|---|---|
| pack-priv Node() | |
| casVariableTime | back to summary |
|---|---|
| public boolean casVariableTime(long expect, long update) Atomically sets the variable time to the given updated value if the current value equals the expected value and returns if the update was successful. | |
| casWriteTime | back to summary |
|---|---|
| public boolean casWriteTime(long expect, long update) 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. | |
| containsValue | back to summary |
|---|---|
| public abstract boolean containsValue(Object value) Returns | |
| die | back to summary |
|---|---|
| public abstract void die() Sets the node to the dead state.
| |
| getAccessTime | back to summary |
|---|---|
| public long getAccessTime() Returns the time that this entry was last accessed, in ns. | |
| getKey | back to summary |
|---|---|
| public abstract @Nullable K getKey() Return the key or | |
| getKeyReference | back to summary |
|---|---|
| public abstract Object getKeyReference() Returns the reference that the cache is holding the entry by. This is either the key if
strongly held or a | |
| getNextInAccessOrder | back to summary |
|---|---|
| public @Nullable Node Implements com. Doc from com. Retrieves the next element or null if either the element is unlinked or the last element on the deque.
| |
| getNextInVariableOrder | back to summary |
|---|---|
| public Node | |
| getNextInWriteOrder | back to summary |
|---|---|
| public @Nullable Node Implements com. Doc from com. Retrieves the next element or null if either the element is unlinked or the last element on the deque.
| |
| getPolicyWeight | back to summary |
|---|---|
| public @NonNegative int getPolicyWeight() Returns the weight of this entry from the policy's perspective. | |
| getPreviousInAccessOrder | back to summary |
|---|---|
| public @Nullable Node Implements com. Doc from com. Retrieves the previous element or null if either the element is unlinked or the first element on the deque.
| |
| getPreviousInVariableOrder | back to summary |
|---|---|
| public Node | |
| getPreviousInWriteOrder | back to summary |
|---|---|
| public @Nullable Node Implements com. Doc from com. Retrieves the previous element or null if either the element is unlinked or the first element on the deque.
| |
| getQueueType | back to summary |
|---|---|
| public int getQueueType() Returns the queue that the entry's resides in (window, probation, or protected). | |
| getValue | back to summary |
|---|---|
| public abstract @Nullable V getValue() Return the value or | |
| getValueReference | back to summary |
|---|---|
| public abstract Object getValueReference() Returns the reference to the value. This is either the value if strongly held or a
| |
| getVariableTime | back to summary |
|---|---|
| public long getVariableTime() Returns the variable expiration time, in nanoseconds. | |
| getWeight | back to summary |
|---|---|
| public @NonNegative int getWeight() Returns the weight of this entry from the entry's perspective.
| |
| getWriteTime | back to summary |
|---|---|
| public long getWriteTime() Returns the time that this entry was last written, in ns. | |
| inMainProbation | back to summary |
|---|---|
| public boolean inMainProbation() Returns if the entry is in the Main space's probation queue. | |
| inMainProtected | back to summary |
|---|---|
| public boolean inMainProtected() Returns if the entry is in the Main space's protected queue. | |
| inWindow | back to summary |
|---|---|
| public boolean inWindow() Returns if the entry is in the Window or Main space. | |
| isAlive | back to summary |
|---|---|
| public abstract boolean isAlive() If the entry is available in the hash-table and page replacement policy. | |
| isDead | back to summary |
|---|---|
| public abstract boolean isDead() If the entry was removed from the hash-table and the page replacement policy.
| |
| isRetired | back to summary |
|---|---|
| public abstract boolean isRetired() If the entry was removed from the hash-table and is awaiting removal from the page replacement policy.
| |
| makeMainProbation | back to summary |
|---|---|
| public void makeMainProbation() Sets the status to the Main space's probation queue. | |
| makeMainProtected | back to summary |
|---|---|
| public void makeMainProtected() Sets the status to the Main space's protected queue. | |
| makeWindow | back to summary |
|---|---|
| public void makeWindow() Sets the status to the Window queue. | |
| retire | back to summary |
|---|---|
| public abstract void retire() Sets the node to the retired state.
| |
| setAccessTime | back to summary |
|---|---|
| public void setAccessTime(long time) Sets the access time in nanoseconds. This update may be set lazily and rely on the memory fence when the lock is released. | |
| setNextInAccessOrder | back to summary |
|---|---|
public void setNextInAccessOrder(@Nullable Node<K, V> next)
| |
| setNextInVariableOrder | back to summary |
|---|---|
| public void setNextInVariableOrder(@Nullable Node<K, V> prev) | |
| setNextInWriteOrder | back to summary |
|---|---|
public void setNextInWriteOrder(@Nullable Node<K, V> next)
| |
| setPolicyWeight | back to summary |
|---|---|
| public void setPolicyWeight(@NonNegative int weight) Sets the weight from the policy's perspective. | |
| setPreviousInAccessOrder | back to summary |
|---|---|
public void setPreviousInAccessOrder(@Nullable Node<K, V> prev)
| |
| setPreviousInVariableOrder | back to summary |
|---|---|
| public void setPreviousInVariableOrder(@Nullable Node<K, V> prev) | |
| setPreviousInWriteOrder | back to summary |
|---|---|
public void setPreviousInWriteOrder(@Nullable Node<K, V> prev)
| |
| setQueueType | back to summary |
|---|---|
| public void setQueueType(int queueType) Set queue that the entry resides in (window, probation, or protected). | |
| setValue | back to summary |
|---|---|
| public abstract void setValue(V value, @Nullable ReferenceQueue<V> referenceQueue) Sets the value, which may be held strongly, weakly, or softly.
| |
| setVariableTime | back to summary |
|---|---|
| public void setVariableTime(long time) Sets the variable expiration time in nanoseconds. This update may be set lazily and rely on the memory fence when the lock is released. | |
| setWeight | back to summary |
|---|---|
| public void setWeight(@NonNegative int weight) Sets the weight from the entry's perspective.
| |
| setWriteTime | back to summary |
|---|---|
| public void setWriteTime(long time) Sets the write-time in nanoseconds. This update may be set lazily and rely on the memory fence when the lock is released. | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |