public class TransactionalAccessDelegate extends Object
The intent of this class is to encapsulate common code and serve as a delegate for
EntityRegionAccessStrategy
and CollectionRegionAccessStrategy
implementations.
Constructor and Description |
---|
TransactionalAccessDelegate(BaseRegion region,
PutFromLoadValidator validator) |
Modifier and Type | Method and Description |
---|---|
boolean |
afterInsert(Object key,
Object value,
Object version) |
boolean |
afterUpdate(Object key,
Object value,
Object currentVersion,
Object previousVersion,
SoftLock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(Object key,
long txTimestamp) |
boolean |
insert(Object key,
Object value,
Object version) |
SoftLock |
lockItem(Object key,
Object version) |
SoftLock |
lockRegion() |
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() |
void |
unlockItem(Object key,
SoftLock lock) |
void |
unlockRegion(SoftLock lock) |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
public TransactionalAccessDelegate(BaseRegion region, PutFromLoadValidator validator)
public Object get(Object key, long txTimestamp) throws CacheException
CacheException
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws CacheException
CacheException
public SoftLock lockItem(Object key, Object version) throws CacheException
CacheException
public SoftLock lockRegion() throws CacheException
CacheException
public void unlockItem(Object key, SoftLock lock) throws CacheException
CacheException
public void unlockRegion(SoftLock lock) throws CacheException
CacheException
public boolean insert(Object key, Object value, Object version) throws CacheException
CacheException
public boolean afterInsert(Object key, Object value, Object version) throws CacheException
CacheException
public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException
CacheException
public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) throws CacheException
CacheException
public void remove(Object key) throws CacheException
CacheException
public void removeAll() throws CacheException
CacheException
public void evict(Object key) throws CacheException
CacheException
public void evictAll() throws CacheException
CacheException
Copyright © 2018 JBoss by Red Hat. All rights reserved.