public class EntityRegionImpl extends BaseRegion implements EntityRegion
cache| Modifier | Constructor and Description |
|---|---|
protected |
EntityRegionImpl(CachingRegionFactory cachingRegionFactory,
java.lang.String name,
CacheDataDescription metadata,
SessionFactoryOptions settings) |
| Modifier and Type | Method and Description |
|---|---|
EntityRegionAccessStrategy |
buildAccessStrategy(AccessType accessType)
Build an access strategy for the requested access type.
|
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.
|
CacheDataDescription |
getCacheDataDescription()
Get the description of the type of data to be stored here, which would have been given to the RegionFactory
when creating this region
|
SessionFactoryOptions |
getSettings() |
boolean |
isTransactionAware()
Is the underlying cache implementation aware of (and "participating in")
ongoing JTA transactions?
Regions which report that they are transaction-aware are considered
"synchronous", in that we assume we can immediately (i.e.
|
void |
put(SessionImplementor session,
java.lang.Object key,
java.lang.Object value)
Put an item into the cache.
|
contains, destroy, getDataMap, getElementCountInMemory, getElementCountOnDisk, getName, getRegionFactory, getSizeInMemory, getTimeout, nextTimestamp, toMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheDataDescription, isTransactionAwarecontains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMapprotected EntityRegionImpl(CachingRegionFactory cachingRegionFactory, java.lang.String name, CacheDataDescription metadata, SessionFactoryOptions settings)
public SessionFactoryOptions getSettings()
public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException
EntityRegionbuildAccessStrategy in interface EntityRegionaccessType - The type of access strategy to build; never null.CacheException - Usually indicates mis-configuration.public CacheDataDescription getCacheDataDescription()
TransactionalDataRegiongetCacheDataDescription in interface TransactionalDataRegionpublic boolean isTransactionAware()
TransactionalDataRegionisTransactionAware in interface TransactionalDataRegionpublic java.lang.Object get(SessionImplementor session, java.lang.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(SessionImplementor session, java.lang.Object key, java.lang.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.public void evict(java.lang.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.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.