public abstract class BaseTransactionalDataRegion extends BaseRegion implements TransactionalDataRegion
TransactionalDataRegion implementors.| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseTransactionalDataRegion.Strategy |
cache, factory, invalidations, lastRegionInvalidation, localAndSkipLoadCache, name, tm| Constructor and Description |
|---|
BaseTransactionalDataRegion(org.infinispan.AdvancedCache cache,
java.lang.String name,
javax.transaction.TransactionManager transactionManager,
CacheDataDescription metadata,
InfinispanRegionFactory factory,
CacheKeysFactory cacheKeysFactory)
Base transactional region constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object key)
Determine whether this region contains data for the given key.
|
protected AccessDelegate |
createAccessDelegate(AccessType accessType) |
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
|
CacheKeysFactory |
getCacheKeysFactory() |
long |
getLastRegionInvalidation() |
long |
getTombstoneExpiration() |
protected boolean |
isRegionAccessStrategyEnabled() |
protected void |
prepareForValidation() |
protected void |
prepareForVersionedEntries() |
protected void |
runInvalidation(boolean inTransaction) |
java.util.Map |
toMap()
Get the contents of this region as a map.
|
beginInvalidation, checkAccessType, checkValid, destroy, endInvalidation, getCache, getCurrentTransaction, getElementCountInMemory, getElementCountOnDisk, getName, getRegionFactory, getSizeInMemory, getTimeout, getTransactionManager, invalidateRegion, isTransactionAware, nextTimestamp, resume, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTransactionAwaredestroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamppublic BaseTransactionalDataRegion(org.infinispan.AdvancedCache cache,
java.lang.String name,
javax.transaction.TransactionManager transactionManager,
CacheDataDescription metadata,
InfinispanRegionFactory factory,
CacheKeysFactory cacheKeysFactory)
cache - instance to store transactional dataname - of the transactional regiontransactionManager - metadata - for the transactional regionfactory - for the transactional regioncacheKeysFactory - factory for cache keysprotected boolean isRegionAccessStrategyEnabled()
public CacheDataDescription getCacheDataDescription()
TransactionalDataRegiongetCacheDataDescription in interface TransactionalDataRegionpublic CacheKeysFactory getCacheKeysFactory()
protected AccessDelegate createAccessDelegate(AccessType accessType)
protected void prepareForValidation()
protected void prepareForVersionedEntries()
public long getTombstoneExpiration()
public long getLastRegionInvalidation()
protected void runInvalidation(boolean inTransaction)
runInvalidation in class BaseRegionpublic java.util.Map toMap()
RegiontoMap in interface RegiontoMap in class BaseRegionpublic boolean contains(java.lang.Object key)
Regioncontains in interface Regioncontains in class BaseRegionkey - The cache keyCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.