static class LocalCache.WeakEntry<K,V> extends java.lang.ref.WeakReference<K> implements ReferenceEntry<K,V>
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
hash |
(package private) ReferenceEntry<K,V> |
next |
(package private) LocalCache.ValueReference<K,V> |
valueReference |
| Constructor and Description |
|---|
WeakEntry(java.lang.ref.ReferenceQueue<K> queue,
K key,
int hash,
ReferenceEntry<K,V> next) |
| 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.
|
final int hash
final ReferenceEntry<K,V> next
volatile LocalCache.ValueReference<K,V> valueReference
WeakEntry(java.lang.ref.ReferenceQueue<K> queue, K key, int hash, ReferenceEntry<K,V> next)
public K getKey()
ReferenceEntrygetKey in interface ReferenceEntry<K,V>public long getAccessTime()
ReferenceEntrygetAccessTime in interface ReferenceEntry<K,V>public void setAccessTime(long time)
ReferenceEntrysetAccessTime in interface ReferenceEntry<K,V>public ReferenceEntry<K,V> getNextInAccessQueue()
ReferenceEntrygetNextInAccessQueue in interface ReferenceEntry<K,V>public void setNextInAccessQueue(ReferenceEntry<K,V> next)
ReferenceEntrysetNextInAccessQueue in interface ReferenceEntry<K,V>public ReferenceEntry<K,V> getPreviousInAccessQueue()
ReferenceEntrygetPreviousInAccessQueue in interface ReferenceEntry<K,V>public void setPreviousInAccessQueue(ReferenceEntry<K,V> previous)
ReferenceEntrysetPreviousInAccessQueue in interface ReferenceEntry<K,V>public long getWriteTime()
getWriteTime in interface ReferenceEntry<K,V>public void setWriteTime(long time)
ReferenceEntrysetWriteTime in interface ReferenceEntry<K,V>public ReferenceEntry<K,V> getNextInWriteQueue()
ReferenceEntrygetNextInWriteQueue in interface ReferenceEntry<K,V>public void setNextInWriteQueue(ReferenceEntry<K,V> next)
ReferenceEntrysetNextInWriteQueue in interface ReferenceEntry<K,V>public ReferenceEntry<K,V> getPreviousInWriteQueue()
ReferenceEntrygetPreviousInWriteQueue in interface ReferenceEntry<K,V>public void setPreviousInWriteQueue(ReferenceEntry<K,V> previous)
ReferenceEntrysetPreviousInWriteQueue in interface ReferenceEntry<K,V>public LocalCache.ValueReference<K,V> getValueReference()
ReferenceEntrygetValueReference in interface ReferenceEntry<K,V>public void setValueReference(LocalCache.ValueReference<K,V> valueReference)
ReferenceEntrysetValueReference in interface ReferenceEntry<K,V>public int getHash()
ReferenceEntrygetHash in interface ReferenceEntry<K,V>public ReferenceEntry<K,V> getNext()
ReferenceEntrygetNext in interface ReferenceEntry<K,V>