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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isTransactionAware
destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp
public 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()
TransactionalDataRegion
getCacheDataDescription
in interface TransactionalDataRegion
public 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 BaseRegion
public java.util.Map toMap()
Region
toMap
in interface Region
toMap
in class BaseRegion
public boolean contains(java.lang.Object key)
Region
contains
in interface Region
contains
in class BaseRegion
key
- The cache keyCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.