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, unlockRegion
protected 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 TransactionalAccessDelegate
CacheException
public void evictAll() throws CacheException
evictAll
in class TransactionalAccessDelegate
CacheException
public boolean insert(Object key, Object value, Object version) throws CacheException
superclass
by adding a DataVersion
to the invocation.insert
in class TransactionalAccessDelegate
CacheException
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws CacheException
putFromLoad
in class TransactionalAccessDelegate
CacheException
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws CacheException
putFromLoad
in class TransactionalAccessDelegate
CacheException
public void remove(Object key) throws CacheException
remove
in class TransactionalAccessDelegate
CacheException
public void removeAll() throws CacheException
removeAll
in class TransactionalAccessDelegate
CacheException
public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException
update
in class TransactionalAccessDelegate
CacheException
Copyright © 2002-2014 Red Hat Middleware, LLC. All Rights Reserved