static final class LocalCache.StrongAccessWriteEntry<K,V> extends LocalCache.StrongEntry<K,V>
Modifier and Type | Field and Description |
---|---|
(package private) long |
accessTime |
(package private) LocalCache.ReferenceEntry<K,V> |
nextAccess |
(package private) LocalCache.ReferenceEntry<K,V> |
nextWrite |
(package private) LocalCache.ReferenceEntry<K,V> |
previousAccess |
(package private) LocalCache.ReferenceEntry<K,V> |
previousWrite |
(package private) long |
writeTime |
hash, key, next, valueReference
Constructor and Description |
---|
StrongAccessWriteEntry(K key,
int hash,
LocalCache.ReferenceEntry<K,V> next) |
Modifier and Type | Method and Description |
---|---|
long |
getAccessTime()
Returns the time that this entry was last accessed, in ns.
|
LocalCache.ReferenceEntry<K,V> |
getNextInAccessQueue()
Returns the next entry in the access queue.
|
LocalCache.ReferenceEntry<K,V> |
getNextInWriteQueue()
Returns the next entry in the write queue.
|
LocalCache.ReferenceEntry<K,V> |
getPreviousInAccessQueue()
Returns the previous entry in the access queue.
|
LocalCache.ReferenceEntry<K,V> |
getPreviousInWriteQueue()
Returns the previous entry in the write queue.
|
long |
getWriteTime()
Returns the time that this entry was last written, in ns.
|
void |
setAccessTime(long time)
Sets the entry access time in ns.
|
void |
setNextInAccessQueue(LocalCache.ReferenceEntry<K,V> next)
Sets the next entry in the access queue.
|
void |
setNextInWriteQueue(LocalCache.ReferenceEntry<K,V> next)
Sets the next entry in the write queue.
|
void |
setPreviousInAccessQueue(LocalCache.ReferenceEntry<K,V> previous)
Sets the previous entry in the access queue.
|
void |
setPreviousInWriteQueue(LocalCache.ReferenceEntry<K,V> previous)
Sets the previous entry in the write queue.
|
void |
setWriteTime(long time)
Sets the entry write time in ns.
|
getHash, getKey, getNext, getValueReference, setValueReference
volatile long accessTime
LocalCache.ReferenceEntry<K,V> nextAccess
LocalCache.ReferenceEntry<K,V> previousAccess
volatile long writeTime
LocalCache.ReferenceEntry<K,V> nextWrite
LocalCache.ReferenceEntry<K,V> previousWrite
StrongAccessWriteEntry(K key, int hash, @Nullable LocalCache.ReferenceEntry<K,V> next)
public long getAccessTime()
LocalCache.ReferenceEntry
getAccessTime
in interface LocalCache.ReferenceEntry<K,V>
getAccessTime
in class LocalCache.AbstractReferenceEntry<K,V>
public void setAccessTime(long time)
LocalCache.ReferenceEntry
setAccessTime
in interface LocalCache.ReferenceEntry<K,V>
setAccessTime
in class LocalCache.AbstractReferenceEntry<K,V>
public LocalCache.ReferenceEntry<K,V> getNextInAccessQueue()
LocalCache.ReferenceEntry
getNextInAccessQueue
in interface LocalCache.ReferenceEntry<K,V>
getNextInAccessQueue
in class LocalCache.AbstractReferenceEntry<K,V>
public void setNextInAccessQueue(LocalCache.ReferenceEntry<K,V> next)
LocalCache.ReferenceEntry
setNextInAccessQueue
in interface LocalCache.ReferenceEntry<K,V>
setNextInAccessQueue
in class LocalCache.AbstractReferenceEntry<K,V>
public LocalCache.ReferenceEntry<K,V> getPreviousInAccessQueue()
LocalCache.ReferenceEntry
getPreviousInAccessQueue
in interface LocalCache.ReferenceEntry<K,V>
getPreviousInAccessQueue
in class LocalCache.AbstractReferenceEntry<K,V>
public void setPreviousInAccessQueue(LocalCache.ReferenceEntry<K,V> previous)
LocalCache.ReferenceEntry
setPreviousInAccessQueue
in interface LocalCache.ReferenceEntry<K,V>
setPreviousInAccessQueue
in class LocalCache.AbstractReferenceEntry<K,V>
public long getWriteTime()
LocalCache.ReferenceEntry
getWriteTime
in interface LocalCache.ReferenceEntry<K,V>
getWriteTime
in class LocalCache.AbstractReferenceEntry<K,V>
public void setWriteTime(long time)
LocalCache.ReferenceEntry
setWriteTime
in interface LocalCache.ReferenceEntry<K,V>
setWriteTime
in class LocalCache.AbstractReferenceEntry<K,V>
public LocalCache.ReferenceEntry<K,V> getNextInWriteQueue()
LocalCache.ReferenceEntry
getNextInWriteQueue
in interface LocalCache.ReferenceEntry<K,V>
getNextInWriteQueue
in class LocalCache.AbstractReferenceEntry<K,V>
public void setNextInWriteQueue(LocalCache.ReferenceEntry<K,V> next)
LocalCache.ReferenceEntry
setNextInWriteQueue
in interface LocalCache.ReferenceEntry<K,V>
setNextInWriteQueue
in class LocalCache.AbstractReferenceEntry<K,V>
public LocalCache.ReferenceEntry<K,V> getPreviousInWriteQueue()
LocalCache.ReferenceEntry
getPreviousInWriteQueue
in interface LocalCache.ReferenceEntry<K,V>
getPreviousInWriteQueue
in class LocalCache.AbstractReferenceEntry<K,V>
public void setPreviousInWriteQueue(LocalCache.ReferenceEntry<K,V> previous)
LocalCache.ReferenceEntry
setPreviousInWriteQueue
in interface LocalCache.ReferenceEntry<K,V>
setPreviousInWriteQueue
in class LocalCache.AbstractReferenceEntry<K,V>