public interface TxInvocationContext<T extends AbstractCacheTransaction> extends InvocationContext
| Modifier and Type | Method and Description |
|---|---|
void |
addAffectedKey(Object key) |
void |
addAllAffectedKeys(Collection<?> keys)
Registers a new participant with the transaction.
|
Set<Object> |
getAffectedKeys()
Returns the set of keys that are affected by this transaction.
|
T |
getCacheTransaction() |
GlobalTransaction |
getGlobalTransaction()
Returns the id of the transaction associated with the current call.
|
List<WriteCommand> |
getModifications()
Returns the modifications performed in the scope of the current transaction.
|
Transaction |
getTransaction()
Returns the tx associated with the current thread.
|
boolean |
hasModifications()
Checks if there are modifications performed within the tx's scope.
|
boolean |
isImplicitTransaction() |
boolean |
isTransactionValid() |
addLockedKey, clearLockedKeys, clone, getClassLoader, getLockedKeys, getLockOwner, getOrigin, hasLockedKey, isEntryRemovedInContext, isInTxScope, isOriginLocal, replaceValue, setClassLoader, setLockOwnergetLookedUpEntries, lookupEntry, putLookedUpEntry, removeLookedUpEntryboolean hasModifications()
Set<Object> getAffectedKeys()
GlobalTransaction getGlobalTransaction()
List<WriteCommand> getModifications()
Transaction getTransaction()
InvocationContext.isOriginLocal(), as Transaction are not propagated from the node where tx was
started.IllegalStateException - if the call is performed from a InvocationContext.isOriginLocal()==false context.void addAllAffectedKeys(Collection<?> keys)
void addAffectedKey(Object key)
boolean isTransactionValid()
boolean isImplicitTransaction()
T getCacheTransaction()
Copyright © 2025 JBoss, a division of Red Hat. All rights reserved.