public class EhcacheQueryResultsRegion extends EhcacheDataRegion implements QueryResultsRegion
Constructor and Description |
---|
EhcacheQueryResultsRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
net.sf.ehcache.Ehcache underlyingCache,
java.util.Properties properties)
Constructs an EhcacheQueryResultsRegion around the given underlying cache.
|
Modifier and Type | Method and Description |
---|---|
void |
evict(java.lang.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).
|
java.lang.Object |
get(SessionImplementor session,
java.lang.Object key)
Get an item from the cache.
|
void |
put(SessionImplementor session,
java.lang.Object key,
java.lang.Object value)
Put an item into the cache.
|
contains, destroy, getAccessStrategyFactory, getCache, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evict, evictAll, get, put
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
public EhcacheQueryResultsRegion(EhcacheAccessStrategyFactory accessStrategyFactory, net.sf.ehcache.Ehcache underlyingCache, java.util.Properties properties)
accessStrategyFactory
- The factory for building needed CollectionRegionAccessStrategy instanceunderlyingCache
- The ehcache cache instanceproperties
- Any additional[ propertiespublic java.lang.Object get(SessionImplementor session, java.lang.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, java.lang.Object key, java.lang.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.public void evict(java.lang.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.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.