public interface Command
| Modifier and Type | Method and Description |
|---|---|
Object |
getObjectKey()
Get the key of the element this command is working on
|
boolean |
isPut(Object key)
Is this command represents adding a key to the store
|
boolean |
isRemove(Object key)
Is this command represents removing a key to the store
|
boolean |
prepare(Store store,
SoftLockManager softLockManager,
XidTransactionID transactionId,
ElementValueComparator comparator)
Prepare the commmand un the underlying store
|
void |
rollback(Store store,
SoftLockManager softLockManager)
Rollback the prepared change
|
boolean isPut(Object key)
key - the keyboolean isRemove(Object key)
key - the keyboolean prepare(Store store, SoftLockManager softLockManager, XidTransactionID transactionId, ElementValueComparator comparator)
store - the underdyling storesoftLockManager - the soft lock managertransactionId - the transaction IDcomparator - the element value comparatorvoid rollback(Store store, SoftLockManager softLockManager)
store - the underlying storesoftLockManager - the soft lock managerObject getObjectKey()
Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.