public class QueryResultsRegionImpl extends BaseTransactionalDataRegion implements QueryResultsRegion
BaseTransactionalDataRegion.Strategy
cache, factory, invalidations, lastRegionInvalidation, localAndSkipLoadCache, name, tm
Constructor and Description |
---|
QueryResultsRegionImpl(org.infinispan.AdvancedCache cache,
String name,
TransactionManager transactionManager,
InfinispanRegionFactory factory)
Query region constructor
|
Modifier and Type | Method and Description |
---|---|
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(SessionImplementor session,
Object key)
Get an item from the cache.
|
protected boolean |
isRegionAccessStrategyEnabled() |
void |
put(SessionImplementor session,
Object key,
Object value)
Put an item into the cache.
|
contains, createAccessDelegate, getCacheDataDescription, getCacheKeysFactory, getLastRegionInvalidation, getTombstoneExpiration, prepareForValidation, prepareForVersionedEntries, runInvalidation, toMap
beginInvalidation, checkAccessType, checkValid, destroy, endInvalidation, getCache, getCurrentTransaction, getElementCountInMemory, getElementCountOnDisk, getName, getRegionFactory, getSizeInMemory, getTimeout, getTransactionManager, invalidateRegion, isTransactionAware, nextTimestamp, resume, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
isTransactionAware
public QueryResultsRegionImpl(org.infinispan.AdvancedCache cache, String name, TransactionManager transactionManager, InfinispanRegionFactory factory)
cache
- instance to store queriesname
- of the query regionfactory
- for the query regionprotected boolean isRegionAccessStrategyEnabled()
isRegionAccessStrategyEnabled
in class BaseTransactionalDataRegion
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(SessionImplementor session, 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(SessionImplementor session, 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.Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.