public class QueryResultsRegionImpl extends TransactionalDataRegionAdapter implements QueryResultsRegion
Modifier and Type | Field and Description |
---|---|
static String |
LEGACY_QUERY_CACHE_LOCAL_ONLY_PROP |
static String |
QUERY_CACHE_LOCAL_ONLY_PROP |
static String |
TYPE |
metadata
currentView, internalFqn, invalidateState, invalidationMutex, ITEM, jbcCache, log, memberId, optimistic, regionFqn, regionName, regionRoot, regionRootMutex, replication, transactionManager
Constructor and Description |
---|
QueryResultsRegionImpl(org.jboss.cache.Cache jbcCache,
String regionName,
String regionPrefix,
Properties properties)
Create a new QueryResultsRegionImpl.
|
Modifier and Type | Method and Description |
---|---|
protected org.jboss.cache.Fqn<String> |
createRegionFqn(String regionName,
String regionPrefix) |
void |
evict(Object key)
Evict an item from the cache immediately (without regard for transaction
isolation).
|
void |
evictAll()
Evict all contents of this particular cache region (without regard for transaction
isolation).
|
Object |
get(Object key)
Get an item from the cache.
|
void |
put(Object key,
Object value)
Put an item into the cache.
|
getCacheDataDescription, isTransactionAware
activateLocalClusterNode, checkValid, contains, deactivateLocalNode, destroy, ensureRegionRootExists, escapeRegionName, getCacheInstance, getElementCountInMemory, getElementCountOnDisk, getMemberId, getName, getNonLockingDataVersionOption, getRegionFqn, getSizeInMemory, getTimeout, getTypeFirstRegionFqn, getTypeLastRegionFqn, handleEvictAllInvalidation, handleEvictAllModification, nextTimestamp, nodeInvalidated, nodeModified, resume, suspend, suspendAndGet, toMap, viewChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
public static final String QUERY_CACHE_LOCAL_ONLY_PROP
public static final String LEGACY_QUERY_CACHE_LOCAL_ONLY_PROP
public static final String TYPE
public QueryResultsRegionImpl(org.jboss.cache.Cache jbcCache, String regionName, String regionPrefix, Properties properties)
jbcCache
- The JBC cache instance to use to store the query resultsregionName
- The name of the region (within the JBC cache)regionPrefix
- Any region prefix to applyproperties
- The configuration properties.public void evict(Object key) throws CacheException
GeneralDataRegion
evict
in interface GeneralDataRegion
key
- The key of the item to removeCacheException
- Indicates a problem accessing the item or region.public void evictAll() throws CacheException
GeneralDataRegion
evictAll
in interface GeneralDataRegion
CacheException
- Indicates problem accessing the region.public Object get(Object key) throws CacheException
GeneralDataRegion
get
in interface GeneralDataRegion
key
- The key of the item to be retrieved.CacheException
- Indicates a problem accessing the item or region.public void put(Object key, Object value) throws CacheException
GeneralDataRegion
put
in interface GeneralDataRegion
key
- The key under which to cache the item.value
- The item to cache.CacheException
- Indicates a problem accessing the region.protected org.jboss.cache.Fqn<String> createRegionFqn(String regionName, String regionPrefix)
createRegionFqn
in class BasicRegionAdapter
Copyright © 2002-2013 Red Hat Middleware, LLC. All Rights Reserved