public class StandardQueryCache extends Object implements QueryCache
Constructor and Description |
---|
StandardQueryCache(Settings settings,
Properties props,
UpdateTimestampsCache updateTimestampsCache,
String regionName) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
destroy() |
List |
get(QueryKey key,
Type[] returnTypes,
boolean isNaturalKeyLookup,
Set spaces,
SessionImplementor session) |
QueryResultsRegion |
getRegion() |
protected boolean |
isUpToDate(Set<Serializable> spaces,
Long timestamp,
SessionImplementor session) |
boolean |
put(QueryKey key,
Type[] returnTypes,
List result,
boolean isNaturalKeyLookup,
SessionImplementor session) |
String |
toString() |
public StandardQueryCache(Settings settings, Properties props, UpdateTimestampsCache updateTimestampsCache, String regionName) throws HibernateException
HibernateException
public void clear() throws CacheException
clear
in interface QueryCache
CacheException
public boolean put(QueryKey key, Type[] returnTypes, List result, boolean isNaturalKeyLookup, SessionImplementor session) throws HibernateException
put
in interface QueryCache
HibernateException
public List get(QueryKey key, Type[] returnTypes, boolean isNaturalKeyLookup, Set spaces, SessionImplementor session) throws HibernateException
get
in interface QueryCache
HibernateException
protected boolean isUpToDate(Set<Serializable> spaces, Long timestamp, SessionImplementor session)
public void destroy()
destroy
in interface QueryCache
public QueryResultsRegion getRegion()
getRegion
in interface QueryCache
Copyright © 2018 JBoss by Red Hat. All rights reserved.