public class GemFireEntityRegion extends GemFireBaseRegion implements org.hibernate.cache.EntityRegion
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ConcurrentMap<java.lang.Object,EntityWrapper> |
preFetchMap
map to store the entries that were pre-fetched when the underlying region has no local storage
|
isClientRegion, metadata, region, regionFactory, stats| Constructor and Description |
|---|
GemFireEntityRegion(com.gemstone.gemfire.cache.Region<java.lang.Object,EntityWrapper> region,
boolean isClient,
org.hibernate.cache.CacheDataDescription metadata,
GemFireRegionFactory regionFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.cache.access.EntityRegionAccessStrategy |
buildAccessStrategy(org.hibernate.cache.access.AccessType accessType) |
EntityWrapper |
get(java.lang.Object key)
If this key was pre-fetched, get the entity.
|
void |
getAll(java.util.Collection<?> keys)
wraps the keys in
KeyWrapper and calls getAll
on the underlying GemFire region. |
org.hibernate.cache.CacheDataDescription |
getCacheDataDescription() |
boolean |
isRegisterInterestRequired()
Should this region should register interest in keys.
|
boolean |
isTransactionAware() |
void |
registerInterest(java.util.Collection<?> list) |
void |
registerInterest(java.lang.Object key)
register interest in this key, if not already registered
|
contains, destroy, equals, getElementCountInMemory, getElementCountOnDisk, getExecutorService, getGemFireRegion, getName, getSizeInMemory, getStats, getTimeout, hashCode, nextTimestamp, toMapprotected java.util.concurrent.ConcurrentMap<java.lang.Object,EntityWrapper> preFetchMap
public GemFireEntityRegion(com.gemstone.gemfire.cache.Region<java.lang.Object,EntityWrapper> region, boolean isClient, org.hibernate.cache.CacheDataDescription metadata, GemFireRegionFactory regionFactory)
public boolean isTransactionAware()
isTransactionAware in interface org.hibernate.cache.TransactionalDataRegionpublic org.hibernate.cache.CacheDataDescription getCacheDataDescription()
getCacheDataDescription in interface org.hibernate.cache.TransactionalDataRegionpublic org.hibernate.cache.access.EntityRegionAccessStrategy buildAccessStrategy(org.hibernate.cache.access.AccessType accessType)
throws org.hibernate.cache.CacheException
buildAccessStrategy in interface org.hibernate.cache.EntityRegionorg.hibernate.cache.CacheExceptionpublic boolean isRegisterInterestRequired()
public void registerInterest(java.lang.Object key)
key - public void registerInterest(java.util.Collection<?> list)
public void getAll(java.util.Collection<?> keys)
KeyWrapper and calls getAll
on the underlying GemFire region. When the underlying region
is a proxy region, the fetched entries are stored in a local
map.keys - public EntityWrapper get(java.lang.Object key)
key -