SK.gnome.dwarf.utils.cache
Class LRUCache.CacheEntry

java.lang.Object
  extended bySK.gnome.dwarf.utils.cache.LRUCache.CacheEntry
Enclosing class:
LRUCache

protected static class LRUCache.CacheEntry
extends java.lang.Object

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

obj

public java.lang.Object obj
The cached object.


key

public java.lang.Object key
The key referencing the cached object.


count

public long count
How many times the cached object was accessed.


time

public long time
The time of the last use of the cached object.

Constructor Detail

LRUCache.CacheEntry

protected LRUCache.CacheEntry()


Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.