public interface QueryCache
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
java.util.Map<QueryKey,QueryResult> |
asMap()
Returns a view of the entries stored in this cache as a map.
|
QueryKey |
findQueryKeyById(java.util.UUID queryId)
Finds query key by query identifier
|
QueryResult |
get(QueryKey queryKey)
Returns the query results associated with
queryKey in this cache |
long |
getMaxSize()
Returns the maximum number of entries the cache may contain.
|
void |
invalidate(QueryKey queryKey)
Discards cached query results for query key
queryKey . |
void |
invalidate(java.util.Set<java.lang.String> typeNames)
Discards cached query results for metaClass names
typeNames . |
void |
invalidate(java.lang.String typeName)
Discards cached query results for metaClass name
typeName . |
QueryKey |
invalidate(java.util.UUID queryId)
Discards cached query results for query identifier
queryKey . |
void |
invalidateAll()
Discards all queries results in the cache.
|
void |
put(QueryKey queryKey,
QueryResult queryResult)
Associates
queryResult with queryKey in this cache |
long |
size()
Returns number of entries in this cache.
|
static final java.lang.String NAME
QueryResult get(QueryKey queryKey)
queryKey
in this cachevoid put(QueryKey queryKey, QueryResult queryResult)
queryResult
with queryKey
in this cacheQueryKey findQueryKeyById(java.util.UUID queryId)
QueryKey invalidate(java.util.UUID queryId)
queryKey
.void invalidate(QueryKey queryKey)
queryKey
.void invalidate(java.lang.String typeName)
typeName
.void invalidate(java.util.Set<java.lang.String> typeNames)
typeNames
.void invalidateAll()
long size()
long getMaxSize()
java.util.Map<QueryKey,QueryResult> asMap()