public class TxTransactionalAccessDelegate extends TransactionalAccessDelegate
cache, log, putValidator, region, TRACE_ENABLED, writeCache| Constructor and Description |
|---|
TxTransactionalAccessDelegate(BaseRegion region,
PutFromLoadValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
insert(SessionImplementor session,
Object key,
Object value,
Object version)
Called after an item has been inserted (before the transaction completes),
instead of calling evict().
|
boolean |
update(SessionImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion)
Called after an item has been updated (before the transaction completes),
instead of calling evict().
|
afterInsert, afterUpdate, create, evict, evictAll, get, putFromLoad, putFromLoad, remove, removeAll, unlockItempublic TxTransactionalAccessDelegate(BaseRegion region, PutFromLoadValidator validator)
public boolean insert(SessionImplementor session, Object key, Object value, Object version) throws CacheException
TransactionalAccessDelegateinsert in class TransactionalAccessDelegatesession - Current sessionkey - The item keyvalue - The itemversion - The item's version valueCacheException - if the insert failspublic boolean update(SessionImplementor session, Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException
TransactionalAccessDelegateupdate in class TransactionalAccessDelegatesession - Current sessionkey - The item keyvalue - The itemcurrentVersion - The item's current version valuepreviousVersion - The item's previous version valueCacheException - if the update failsCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.