Class AbstractLevel2Cache
java.lang.Object
org.datanucleus.cache.AbstractLevel2Cache
- All Implemented Interfaces:
Serializable, Level2Cache
- Direct Known Subclasses:
JavaxCacheLevel2Cache, NullLevel2Cache
Abstract starting point for a third-party L2 cache plugin.
Override the pin/unpin methods if supportable by your plugin.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of the cache to use.protected booleanWhether to clear out all objects at close().protected longTimeout for cache object expiration (milliseconds).protected intMaximum size of cache (if supported by the plugin).protected NucleusContextprivate static final long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Level2Cache
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
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
nucleusCtx
-
maxSize
protected int maxSizeMaximum size of cache (if supported by the plugin). -
clearAtClose
protected boolean clearAtCloseWhether to clear out all objects at close(). -
expiryMillis
protected long expiryMillisTimeout for cache object expiration (milliseconds). -
cacheName
Name of the cache to use.
-
-
Constructor Details
-
AbstractLevel2Cache
-