public class JavaxCacheQueryDatastoreCompilationCache extends Object implements QueryDatastoreCompilationCache, Serializable
| Constructor and Description |
|---|
JavaxCacheQueryDatastoreCompilationCache(NucleusContext nucleusCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Method to clear the cache.
|
void |
close()
Method to close the cache when no longer needed.
|
boolean |
contains(String queryKey)
Accessor for whether the specified query is in the cache
|
void |
evict(String queryKey)
Evict the query from the compilation cache.
|
Object |
get(String queryKey)
Accessor for a (generic) compilation from the cache.
|
boolean |
isEmpty()
Accessor for whether the cache is empty.
|
Object |
put(String queryKey,
Object compilation)
Method to put an object in the cache.
|
int |
size()
Accessor for the total number of compilations in the query cache.
|
public JavaxCacheQueryDatastoreCompilationCache(NucleusContext nucleusCtx)
public void close()
QueryDatastoreCompilationCacheclose in interface QueryDatastoreCompilationCachepublic void evict(String queryKey)
QueryDatastoreCompilationCacheevict in interface QueryDatastoreCompilationCachequeryKey - Key for the query to evict.public void clear()
QueryDatastoreCompilationCacheclear in interface QueryDatastoreCompilationCachepublic boolean isEmpty()
QueryDatastoreCompilationCacheisEmpty in interface QueryDatastoreCompilationCachepublic int size()
QueryDatastoreCompilationCachesize in interface QueryDatastoreCompilationCachepublic Object get(String queryKey)
QueryDatastoreCompilationCacheget in interface QueryDatastoreCompilationCachequeryKey - The query keypublic Object put(String queryKey, Object compilation)
QueryDatastoreCompilationCacheput in interface QueryDatastoreCompilationCachequeryKey - The query keycompilation - The compilation for this datastorepublic boolean contains(String queryKey)
QueryDatastoreCompilationCachecontains in interface QueryDatastoreCompilationCachequeryKey - The query keyCopyright © 2020. All rights reserved.