|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryResultsCache
Cache for query results.
| Method Summary | |
|---|---|
void |
close()
Method to close the cache when no longer needed. |
boolean |
contains(java.lang.String queryKey)
Accessor for whether the specified query is in the cache |
void |
evict(Query query)
Evict the query from the results cache. |
void |
evict(Query query,
java.util.Map params)
Evict the query with the specified params from the results cache. |
void |
evictAll()
Method to clear the cache. |
java.util.List<java.lang.Object> |
get(java.lang.String queryKey)
Accessor for the results from the cache. |
boolean |
isEmpty()
Accessor for whether the cache is empty. |
void |
pin(Query query)
Method to pin the specified query in the cache, preventing garbage collection. |
void |
pin(Query query,
java.util.Map params)
Method to pin the specified query in the cache, preventing garbage collection. |
java.util.List<java.lang.Object> |
put(java.lang.String queryKey,
java.util.List<java.lang.Object> results)
Method to put an object in the cache. |
int |
size()
Accessor for the total number of results in the query cache. |
void |
unpin(Query query)
Method to unpin the specified query from the cache, allowing garbage collection. |
void |
unpin(Query query,
java.util.Map params)
Method to unpin the specified query from the cache, allowing garbage collection. |
| Method Detail |
|---|
void close()
void evict(Query query)
query - The query to evict (evicts all use of this query, with any params)
void evict(Query query,
java.util.Map params)
query - The query to evictparams - The parametersvoid evictAll()
void pin(Query query)
query - The query
void pin(Query query,
java.util.Map params)
query - The queryparams - Its paramsvoid unpin(Query query)
query - The query
void unpin(Query query,
java.util.Map params)
query - The queryparams - Its paramsboolean isEmpty()
int size()
java.util.List<java.lang.Object> get(java.lang.String queryKey)
queryKey - The query key
java.util.List<java.lang.Object> put(java.lang.String queryKey,
java.util.List<java.lang.Object> results)
queryKey - The query keyresults - The results for this query
boolean contains(java.lang.String queryKey)
queryKey - The query key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||