org.datanucleus.cache
Class SoftLevel2Cache

java.lang.Object
  extended by org.datanucleus.cache.WeakLevel2Cache
      extended by org.datanucleus.cache.SoftLevel2Cache
All Implemented Interfaces:
java.io.Serializable, Level2Cache

public class SoftLevel2Cache
extends WeakLevel2Cache

Soft implementation of a Level 2 cache. The second (unpinned) map stores soft references meaning that they may be garbage collected only if necessary by the JVM.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.datanucleus.cache.Level2Cache
Level2Cache.PinnedClass
 
Field Summary
 
Fields inherited from class org.datanucleus.cache.WeakLevel2Cache
apiAdapter, pinnedCache, pinnedClasses, pinnedIds, unpinnedCache
 
Constructor Summary
SoftLevel2Cache(OMFContext omfCtx)
          Constructor.
 
Method Summary
 
Methods inherited from class org.datanucleus.cache.WeakLevel2Cache
clear, close, containsOid, evict, evictAll, evictAll, evictAll, evictAll, get, getNumberOfPinnedObjects, getNumberOfUnpinnedObjects, getSize, isEmpty, pin, pinAll, pinAll, pinAll, put, unpin, unpinAll, unpinAll, unpinAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftLevel2Cache

public SoftLevel2Cache(OMFContext omfCtx)
Constructor.

Parameters:
omfCtx - OMF Context


Copyright © 2010. All Rights Reserved.