public class NonTxInvalidationCacheAccessDelegate extends InvalidationCacheAccessDelegate
cache, log, putValidator, region, TRACE_ENABLED, writeCache| Constructor and Description |
|---|
NonTxInvalidationCacheAccessDelegate(BaseRegion region,
PutFromLoadValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
afterInsert(SharedSessionContractImplementor session,
java.lang.Object key,
java.lang.Object value,
java.lang.Object version)
Called after an item has been inserted (after the transaction completes),
instead of calling release().
|
boolean |
afterUpdate(SharedSessionContractImplementor session,
java.lang.Object key,
java.lang.Object value,
java.lang.Object currentVersion,
java.lang.Object previousVersion,
SoftLock lock)
Called after an item has been updated (after the transaction completes),
instead of calling release().
|
boolean |
insert(SharedSessionContractImplementor session,
java.lang.Object key,
java.lang.Object value,
java.lang.Object version)
Called after an item has been inserted (before the transaction completes),
instead of calling evict().
|
void |
removeAll()
Called to evict data from the entire region
|
boolean |
update(SharedSessionContractImplementor session,
java.lang.Object key,
java.lang.Object value,
java.lang.Object currentVersion,
java.lang.Object previousVersion)
Called after an item has been updated (before the transaction completes),
instead of calling evict().
|
evict, evictAll, get, putFromLoad, putFromLoad, remove, unlockItempublic NonTxInvalidationCacheAccessDelegate(BaseRegion region, PutFromLoadValidator validator)
public boolean insert(SharedSessionContractImplementor session, java.lang.Object key, java.lang.Object value, java.lang.Object version) throws CacheException
AccessDelegatesession - Current sessionkey - The item keyvalue - The itemversion - The item's version valueCacheException - if the insert failspublic boolean update(SharedSessionContractImplementor session, java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion, java.lang.Object previousVersion) throws CacheException
AccessDelegatesession - Current sessionkey - The item keyvalue - The itemcurrentVersion - The item's current version valuepreviousVersion - The item's previous version valueCacheException - if the update failspublic boolean afterInsert(SharedSessionContractImplementor session, java.lang.Object key, java.lang.Object value, java.lang.Object version)
AccessDelegatekey - The item keyvalue - The itemversion - The item's version valuepublic boolean afterUpdate(SharedSessionContractImplementor session, java.lang.Object key, java.lang.Object value, java.lang.Object currentVersion, java.lang.Object previousVersion, SoftLock lock)
AccessDelegatekey - The item keyvalue - The itemcurrentVersion - The item's current version valuepreviousVersion - The item's previous version valuelock - The lock previously obtained from #lockItempublic void removeAll()
throws CacheException
AccessDelegateremoveAll in interface AccessDelegateremoveAll in class InvalidationCacheAccessDelegateCacheException - if eviction the region failsCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.