org.mmbase.cache
Class NodeCache

java.lang.Object
  extended byorg.mmbase.cache.Cache
      extended byorg.mmbase.cache.NodeCache
All Implemented Interfaces:
EventListener, Map, NodeEventListener, SizeMeasurable

public class NodeCache
extends Cache
implements NodeEventListener

A cache for MMObjectNodes.

Version:
$Id: NodeCache.java,v 1.6 2006/06/23 17:01:00 michiel Exp $
Author:
Michiel Meeuwissen

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
 
Fields inherited from class org.mmbase.cache.Cache
maxEntrySize
 
Method Summary
static NodeCache getCache()
           
 String getDescription()
          Gives a description for this cache type.
 String getName()
          Returns a name for this cache type.
 void notify(NodeEvent event)
           
 Object remove(Object key)
           
 
Methods inherited from class org.mmbase.cache.Cache
checkCachePolicy, clear, contains, containsKey, containsValue, entrySet, equals, get, getByteSize, getByteSize, getCache, getCaches, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getMaxEntrySize, getMisses, getPuts, getRatio, getStats, getTotalByteSize, hashCode, isActive, isEmpty, keySet, main, maxSize, put, putAll, putCache, putCache, setActive, setMaxSize, size, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCache

public static NodeCache getCache()

getName

public String getName()
Description copied from class: Cache
Returns a name for this cache type. Default it is the class name, but this normally will be overriden.

Overrides:
getName in class Cache

getDescription

public String getDescription()
Description copied from class: Cache
Gives a description for this cache type. This can be used in cache overviews.

Overrides:
getDescription in class Cache

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class Cache
See Also:
Map.remove(java.lang.Object)

notify

public void notify(NodeEvent event)
Specified by:
notify in interface NodeEventListener


MMBase build 1.8.1.20060716