public abstract class AbstractTxInvocationContext extends AbstractInvocationContext implements TxInvocationContext
TxInvocationContext.| Constructor and Description |
|---|
AbstractTxInvocationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAffectedKey(Object key) |
void |
addAllAffectedKeys(Collection<Object> keys)
Registers a new participant with the transaction.
|
void |
clearLockedKeys() |
Set<Object> |
getAffectedKeys()
Returns the set of keys that are affected by this transaction.
|
abstract AbstractCacheTransaction |
getCacheTransaction() |
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 |
isInTxScope()
Returns true if this call is performed in the context of an transaction, false otherwise.
|
protected void |
onEntryValueReplaced(Object key,
InternalCacheEntry cacheEntry) |
void |
setImplicitTransaction(boolean implicit)
Marks this transaction as implicit; implicit transactions are started for transactional caches that have the autoCommit enabled.
|
TxInvocationContext |
setTransaction(Transaction transaction) |
clone, getClassLoader, getOrigin, hasLockedKey, isEntryRemovedInContext, isOriginLocal, replaceValue, setClassLoader, setOrigin, setOriginLocalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGlobalTransaction, getModifications, isTransactionValid, skipTransactionCompleteCheck, skipTransactionCompleteCheckaddLockedKey, clone, getClassLoader, getLockedKeys, getLockOwner, getOrigin, hasLockedKey, isEntryRemovedInContext, isOriginLocal, replaceValue, setClassLoadergetLookedUpEntries, lookupEntry, putLookedUpEntry, removeLookedUpEntrypublic boolean hasModifications()
TxInvocationContexthasModifications in interface TxInvocationContextpublic Set<Object> getAffectedKeys()
TxInvocationContextgetAffectedKeys in interface TxInvocationContextpublic void addAllAffectedKeys(Collection<Object> keys)
TxInvocationContextaddAllAffectedKeys in interface TxInvocationContextpublic void addAffectedKey(Object key)
addAffectedKey in interface TxInvocationContextpublic void setImplicitTransaction(boolean implicit)
TxInvocationContextsetImplicitTransaction in interface TxInvocationContextpublic boolean isImplicitTransaction()
isImplicitTransaction in interface TxInvocationContextpublic boolean isInTxScope()
InvocationContextisInTxScope in interface InvocationContextpublic TxInvocationContext setTransaction(Transaction transaction)
public Transaction getTransaction()
TxInvocationContextInvocationContext.isOriginLocal(), as Transaction are not propagated from the node where tx was
started.getTransaction in interface TxInvocationContextpublic final void clearLockedKeys()
clearLockedKeys in interface InvocationContextprotected void onEntryValueReplaced(Object key, InternalCacheEntry cacheEntry)
onEntryValueReplaced in class AbstractInvocationContextpublic abstract AbstractCacheTransaction getCacheTransaction()
getCacheTransaction in interface TxInvocationContextCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.