public class OptimisticTransactionalAccessDelegate extends TransactionalAccessDelegate
The intent of this class is to encapsulate common code and serve as a
delegate for EntityRegionAccessStrategy and
CollectionRegionAccessStrategy implementations.
| Modifier and Type | Field and Description |
|---|---|
protected CacheDataDescription |
dataDescription |
cache, invalidation, putValidator, region, regionFqn| Constructor and Description |
|---|
OptimisticTransactionalAccessDelegate(TransactionalDataRegionAdapter region,
PutFromLoadValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(Object key)
Overrides the
superclass by adding a
NonLockingDataVersion to the invocation. |
void |
evictAll() |
boolean |
insert(Object key,
Object value,
Object version)
Overrides the
superclass
by adding a DataVersion to the invocation. |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
void |
remove(Object key) |
void |
removeAll() |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
afterInsert, afterUpdate, get, lockItem, lockRegion, unlockItem, unlockRegionprotected final CacheDataDescription dataDescription
public OptimisticTransactionalAccessDelegate(TransactionalDataRegionAdapter region, PutFromLoadValidator validator)
public void evict(Object key) throws CacheException
superclass by adding a
NonLockingDataVersion to the invocation.evict in class TransactionalAccessDelegateCacheExceptionpublic void evictAll()
throws CacheException
evictAll in class TransactionalAccessDelegateCacheExceptionpublic boolean insert(Object key, Object value, Object version) throws CacheException
superclass
by adding a DataVersion to the invocation.insert in class TransactionalAccessDelegateCacheExceptionpublic boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws CacheException
putFromLoad in class TransactionalAccessDelegateCacheExceptionpublic boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws CacheException
putFromLoad in class TransactionalAccessDelegateCacheExceptionpublic void remove(Object key) throws CacheException
remove in class TransactionalAccessDelegateCacheExceptionpublic void removeAll()
throws CacheException
removeAll in class TransactionalAccessDelegateCacheExceptionpublic boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException
update in class TransactionalAccessDelegateCacheExceptionCopyright © 2002-2012 Red Hat Middleware, LLC. All Rights Reserved