org.mycore.common
Class MCRCache.MCRCacheEntry

java.lang.Object
  extended by org.mycore.common.MCRCache.MCRCacheEntry
Enclosing class:
MCRCache

 class MCRCache.MCRCacheEntry
extends Object

For each object in the cache, there is one MCRCacheEntry object encapsulating it. The cache uses a double-linked list of MCRCacheEntries and holds references to the most and least recently used entry.


Field Summary
(package private)  MCRCache.MCRCacheEntry after
          The entry after this one, less often used than this entry
(package private)  MCRCache.MCRCacheEntry before
          The entry before this one, more often used than this entry
(package private)  Object key
          The key for this object, to be used for removing the object
(package private)  Object object
          The stored object encapsulated by this entry
(package private)  long time
          The timestamp when this object was placed in the cache
 
Constructor Summary
MCRCache.MCRCacheEntry()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

before

MCRCache.MCRCacheEntry before
The entry before this one, more often used than this entry


after

MCRCache.MCRCacheEntry after
The entry after this one, less often used than this entry


key

Object key
The key for this object, to be used for removing the object


time

long time
The timestamp when this object was placed in the cache


object

Object object
The stored object encapsulated by this entry

Constructor Detail

MCRCache.MCRCacheEntry

MCRCache.MCRCacheEntry()