Class SoftLevel2Cache

  extended by org.datanucleus.cache.WeakLevel2Cache
      extended by org.datanucleus.cache.SoftLevel2Cache
All Implemented Interfaces:, 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
Field Summary
Fields inherited from class org.datanucleus.cache.WeakLevel2Cache
apiAdapter, pinnedCache, pinnedClasses, pinnedIds, unpinnedCache
Constructor Summary
SoftLevel2Cache(OMFContext omfCtx)
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


public SoftLevel2Cache(OMFContext omfCtx)

omfCtx - OMF Context

Copyright © 2011. All Rights Reserved.