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 |
metadatacurrentView, 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, isTransactionAwareactivateLocalClusterNode, 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, viewChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMappublic 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
GeneralDataRegionevict in interface GeneralDataRegionkey - The key of the item to removeCacheException - Indicates a problem accessing the item or region.public void evictAll()
throws CacheException
GeneralDataRegionevictAll in interface GeneralDataRegionCacheException - Indicates problem accessing the region.public Object get(Object key) throws CacheException
GeneralDataRegionget in interface GeneralDataRegionkey - 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
GeneralDataRegionput in interface GeneralDataRegionkey - 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 BasicRegionAdapterCopyright © 2002-2012 Red Hat Middleware, LLC. All Rights Reserved