Class SoftLevel2Cache
java.lang.Object
org.datanucleus.cache.AbstractReferencedLevel2Cache
org.datanucleus.cache.SoftLevel2Cache
- All Implemented Interfaces:
Serializable, Level2Cache
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractReferencedLevel2Cache
AbstractReferencedLevel2Cache.PinnedClass -
Field Summary
FieldsFields inherited from class AbstractReferencedLevel2Cache
apiAdapter, pinnedCache, pinnedClasses, pinnedIds, uniqueKeyCache, unpinnedCache -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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 Details
-
NAME
- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SoftLevel2Cache
-
-
Method Details
-
initialiseCaches
protected void initialiseCaches()- Specified by:
initialiseCachesin classAbstractReferencedLevel2Cache
-