abstract static class LocalCache.AbstractReferenceEntry<K,V> extends java.lang.Object implements ReferenceEntry<K,V>
Constructor and Description |
---|
AbstractReferenceEntry() |
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.
|
public LocalCache.ValueReference<K,V> getValueReference()
ReferenceEntry
getValueReference
in interface ReferenceEntry<K,V>
public void setValueReference(LocalCache.ValueReference<K,V> valueReference)
ReferenceEntry
setValueReference
in interface ReferenceEntry<K,V>
public ReferenceEntry<K,V> getNext()
ReferenceEntry
getNext
in interface ReferenceEntry<K,V>
public int getHash()
ReferenceEntry
getHash
in interface ReferenceEntry<K,V>
public K getKey()
ReferenceEntry
getKey
in interface ReferenceEntry<K,V>
public long getAccessTime()
ReferenceEntry
getAccessTime
in interface ReferenceEntry<K,V>
public void setAccessTime(long time)
ReferenceEntry
setAccessTime
in interface ReferenceEntry<K,V>
public ReferenceEntry<K,V> getNextInAccessQueue()
ReferenceEntry
getNextInAccessQueue
in interface ReferenceEntry<K,V>
public void setNextInAccessQueue(ReferenceEntry<K,V> next)
ReferenceEntry
setNextInAccessQueue
in interface ReferenceEntry<K,V>
public ReferenceEntry<K,V> getPreviousInAccessQueue()
ReferenceEntry
getPreviousInAccessQueue
in interface ReferenceEntry<K,V>
public void setPreviousInAccessQueue(ReferenceEntry<K,V> previous)
ReferenceEntry
setPreviousInAccessQueue
in interface ReferenceEntry<K,V>
public long getWriteTime()
getWriteTime
in interface ReferenceEntry<K,V>
public void setWriteTime(long time)
ReferenceEntry
setWriteTime
in interface ReferenceEntry<K,V>
public ReferenceEntry<K,V> getNextInWriteQueue()
ReferenceEntry
getNextInWriteQueue
in interface ReferenceEntry<K,V>
public void setNextInWriteQueue(ReferenceEntry<K,V> next)
ReferenceEntry
setNextInWriteQueue
in interface ReferenceEntry<K,V>
public ReferenceEntry<K,V> getPreviousInWriteQueue()
ReferenceEntry
getPreviousInWriteQueue
in interface ReferenceEntry<K,V>
public void setPreviousInWriteQueue(ReferenceEntry<K,V> previous)
ReferenceEntry
setPreviousInWriteQueue
in interface ReferenceEntry<K,V>