|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.cache.CacheNode<T>
public class CacheNode<T>
Node for a single entry in an indexed LRU cache. The node contains threaded references to earlier and later nodes in the LRU list.
| Constructor Summary | |
|---|---|
CacheNode(java.lang.String key,
T value)
Create node and set initial access time. |
|
| Method Summary | |
|---|---|
T |
get()
Return the node value. |
CacheNode<T> |
getAfter()
Return the after (older) node in the LRU list. |
CacheNode<T> |
getBefore()
Return the before (newer) node or null in LRU list. |
java.lang.String |
getKey()
|
long |
getLastAccessMillis()
Returns time of last access. |
void |
release()
Release resources associated with the value. |
void |
setAfter(CacheNode<T> next)
Set the after node in the LRU list. |
void |
setBefore(CacheNode<T> previous)
Set the before node in the LRU list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheNode(java.lang.String key,
T value)
| Method Detail |
|---|
public void release()
public java.lang.String getKey()
public T get()
public long getLastAccessMillis()
public CacheNode<T> getBefore()
public void setBefore(CacheNode<T> previous)
public CacheNode<T> getAfter()
public void setAfter(CacheNode<T> next)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||