|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.utils.cache.LRUCache.CacheEntry
This class represents the cached object.
The cache entries are kept in the LRUCache.entries
list which reflects the actual
cache content. The entry fields count
and time
are updated automatically
when the corresponding object is returned by the LRUCache.get(Object)
method. However,
the time
field is updated only if the cache expiration timeout is set to a value
greater than zero.
Field Summary | |
long |
count
How many times the cached object was accessed. |
java.lang.Object |
key
The key referencing the cached object. |
java.lang.Object |
obj
The cached object. |
long |
time
The time of the last use of the cached object. |
Constructor Summary | |
protected |
LRUCache.CacheEntry()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.Object obj
public java.lang.Object key
public long count
public long time
Constructor Detail |
protected LRUCache.CacheEntry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |