org.mmbase.cache
Class RelationsCache

java.lang.Object
  extended by org.mmbase.cache.Cache<Integer,List<MMObjectNode>>
      extended by org.mmbase.cache.RelationsCache
All Implemented Interfaces:
Map<Integer,List<MMObjectNode>>, CacheMBean, SizeMeasurable

public class RelationsCache
extends Cache<Integer,List<MMObjectNode>>

Cache from MMObjectNode number to List of InsRel MMObjectNodes instances (relation nodes). Used in MMObjectNode.

Since:
MMBase-1.7
Version:
$Id: RelationsCache.java 34936 2009-05-04 14:41:51Z michiel $
Author:
Michiel Meeuwissen
See Also:
MMObjectNode.getRelations(), MMObjectNode.getRelationNodes()

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.mmbase.cache.Cache
lock, maxEntrySize
 
Method Summary
static RelationsCache getCache()
           
 String getDescription()
          Gives a description for this cache type.
 String getName()
          Returns a name for this cache type.
 
Methods inherited from class org.mmbase.cache.Cache
checkCachePolicy, clear, contains, containsKey, containsValue, entrySet, equals, get, getAvarageValueLength, getByteSize, getByteSize, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getImplementation, getLock, getMaxEntrySize, getMaxSize, getMisses, getPuts, getRatio, getSize, getStats, hashCode, isActive, isEmpty, keySet, maxSize, put, putAll, putCache, remove, reset, setActive, setImplementation, setMaxEntrySize, setMaxSize, size, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getCache

public static RelationsCache 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.

Specified by:
getName in interface CacheMBean
Overrides:
getName in class Cache<Integer,List<MMObjectNode>>

getDescription

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

Specified by:
getDescription in interface CacheMBean
Overrides:
getDescription in class Cache<Integer,List<MMObjectNode>>


MMBase 2.0-SNAPSHOT - null