interface ReferenceEntry<K,V>
Entries in the map can be in the following states:
Valid:
Invalid:
Modifier and Type | Method and Description |
---|---|
long |
getAccessTime()
Returns the time that this entry was last accessed, in ns.
|
int |
getHash()
Returns the entry's hash.
|
K |
getKey()
Returns the key for this entry.
|
ReferenceEntry<K,V> |
getNext()
Returns the next entry in the chain.
|
ReferenceEntry<K,V> |
getNextInAccessQueue()
Returns the next entry in the access queue.
|
ReferenceEntry<K,V> |
getNextInWriteQueue()
Returns the next entry in the write queue.
|
ReferenceEntry<K,V> |
getPreviousInAccessQueue()
Returns the previous entry in the access queue.
|
ReferenceEntry<K,V> |
getPreviousInWriteQueue()
Returns the previous entry in the write queue.
|
LocalCache.ValueReference<K,V> |
getValueReference()
Returns the value reference from this entry.
|
long |
getWriteTime() |
void |
setAccessTime(long time)
Sets the entry access time in ns.
|
void |
setNextInAccessQueue(ReferenceEntry<K,V> next)
Sets the next entry in the access queue.
|
void |
setNextInWriteQueue(ReferenceEntry<K,V> next)
Sets the next entry in the write queue.
|
void |
setPreviousInAccessQueue(ReferenceEntry<K,V> previous)
Sets the previous entry in the access queue.
|
void |
setPreviousInWriteQueue(ReferenceEntry<K,V> previous)
Sets the previous entry in the write queue.
|
void |
setValueReference(LocalCache.ValueReference<K,V> valueReference)
Sets the value reference for this entry.
|
void |
setWriteTime(long time)
Sets the entry write time in ns.
|
@CheckForNull LocalCache.ValueReference<K,V> getValueReference()
void setValueReference(LocalCache.ValueReference<K,V> valueReference)
@CheckForNull ReferenceEntry<K,V> getNext()
int getHash()
@CheckForNull K getKey()
long getAccessTime()
void setAccessTime(long time)
ReferenceEntry<K,V> getNextInAccessQueue()
void setNextInAccessQueue(ReferenceEntry<K,V> next)
ReferenceEntry<K,V> getPreviousInAccessQueue()
void setPreviousInAccessQueue(ReferenceEntry<K,V> previous)
long getWriteTime()
void setWriteTime(long time)
ReferenceEntry<K,V> getNextInWriteQueue()
void setNextInWriteQueue(ReferenceEntry<K,V> next)
ReferenceEntry<K,V> getPreviousInWriteQueue()
void setPreviousInWriteQueue(ReferenceEntry<K,V> previous)