Class AbstractQueryResultsCache
- java.lang.Object
-
- org.datanucleus.store.query.cache.AbstractQueryResultsCache
-
- All Implemented Interfaces:
java.io.Serializable,QueryResultsCache
- Direct Known Subclasses:
JavaxCacheQueryResultCache
public abstract class AbstractQueryResultsCache extends java.lang.Object implements QueryResultsCache
Root implementation of a query results cache, providing provessing of common persistence properties.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringcacheNameName of the cache to use.protected booleanclearAtCloseWhether to clear out all objects at close().protected longexpiryMillisTimeout for cache object expiration (milliseconds).protected intmaxSizeMaximum size of cache (if supported by the plugin).protected NucleusContextnucleusCtxprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description AbstractQueryResultsCache(NucleusContext nucleusCtx)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
nucleusCtx
protected NucleusContext nucleusCtx
-
maxSize
protected int maxSize
Maximum size of cache (if supported by the plugin).
-
clearAtClose
protected boolean clearAtClose
Whether to clear out all objects at close().
-
expiryMillis
protected long expiryMillis
Timeout for cache object expiration (milliseconds).
-
cacheName
protected java.lang.String cacheName
Name of the cache to use.
-
-
Constructor Detail
-
AbstractQueryResultsCache
public AbstractQueryResultsCache(NucleusContext nucleusCtx)
-
-