- java.lang.Object
-
- org.datanucleus.cache.AbstractReferencedLevel2Cache
-
- org.datanucleus.cache.SoftLevel2Cache
-
- All Implemented Interfaces:
Serializable
,Level2Cache
public class SoftLevel2Cache extends AbstractReferencedLevel2Cache
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
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from class org.datanucleus.cache.AbstractReferencedLevel2Cache
apiAdapter, pinnedCache, pinnedClasses, pinnedIds, uniqueKeyCache, unpinnedCache
-
-
Constructor Summary
Constructors Constructor Description SoftLevel2Cache(NucleusContext nucleusCtx)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initialiseCaches()
-
Methods inherited from class org.datanucleus.cache.AbstractReferencedLevel2Cache
close, containsOid, evict, evictAll, evictAll, evictAll, evictAll, get, getAll, getNumberOfPinnedObjects, getNumberOfUnpinnedObjects, getSize, getUnique, isEmpty, pin, pinAll, pinAll, pinAll, put, putAll, putUnique, putUniqueAll, removeUnique, unpin, unpinAll, unpinAll, unpinAll
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SoftLevel2Cache
public SoftLevel2Cache(NucleusContext nucleusCtx)
Constructor.- Parameters:
nucleusCtx
- Context
-
-
Method Detail
-
initialiseCaches
protected void initialiseCaches()
- Specified by:
initialiseCaches
in classAbstractReferencedLevel2Cache
-
-