|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.context.InvocationContextFlagsOverride org.infinispan.context.TransactionalInvocationContextFlagsOverride
public class TransactionalInvocationContextFlagsOverride
Extension of InvocationContextFlagsOverride to be used when a TxInvocationContext is required.
InvocationContextFlagsOverride
Constructor Summary | |
---|---|
TransactionalInvocationContextFlagsOverride(TxInvocationContext delegate,
Set<Flag> flags)
|
Method Summary | |
---|---|
void |
addAffectedKey(Object key)
|
void |
addAllAffectedKeys(Collection<Object> keys)
Registers a new participant with the transaction. |
Set<Object> |
getAffectedKeys()
Returns the set of keys that are affected by this transaction. |
CacheTransaction |
getCacheTransaction()
|
GlobalTransaction |
getGlobalTransaction()
Returns the id of the transaction associated with the current call. |
List<WriteCommand> |
getModifications()
Returns all the modifications performed in the scope of the current transaction. |
Transaction |
getTransaction()
Returns the tx associated with the current thread. |
boolean |
hasModifications()
Were there any modifications performed within the tx's scope? |
boolean |
isImplicitTransaction()
|
boolean |
isTransactionValid()
|
void |
setImplicitTransaction(boolean implicit)
Marks this transaction as implicit; implicit transactions are started for transactional caches that have the autoCommit enabled. |
Methods inherited from class org.infinispan.context.InvocationContextFlagsOverride |
---|
addLockedKey, clearLockedKeys, clearLookedUpEntries, clone, getClassLoader, getFlags, getLockedKeys, getLockOwner, getLookedUpEntries, getOrigin, hasFlag, hasLockedKey, isInTxScope, isOriginLocal, isUseFutureReturnType, lookupEntry, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntry, reset, setClassLoader, setFlags, setFlags, setUseFutureReturnType |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.infinispan.context.InvocationContext |
---|
addLockedKey, clearLockedKeys, clone, getClassLoader, getLockedKeys, getLockOwner, getOrigin, hasLockedKey, isInTxScope, isOriginLocal, isUseFutureReturnType, setClassLoader, setUseFutureReturnType |
Methods inherited from interface org.infinispan.context.EntryLookup |
---|
clearLookedUpEntries, getLookedUpEntries, lookupEntry, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntry |
Methods inherited from interface org.infinispan.context.FlagContainer |
---|
getFlags, hasFlag, reset, setFlags, setFlags |
Constructor Detail |
---|
public TransactionalInvocationContextFlagsOverride(TxInvocationContext delegate, Set<Flag> flags)
Method Detail |
---|
public boolean hasModifications()
TxInvocationContext
hasModifications
in interface TxInvocationContext
public Set<Object> getAffectedKeys()
TxInvocationContext
getAffectedKeys
in interface TxInvocationContext
public GlobalTransaction getGlobalTransaction()
TxInvocationContext
getGlobalTransaction
in interface TxInvocationContext
public List<WriteCommand> getModifications()
TxInvocationContext
getModifications
in interface TxInvocationContext
public void addAllAffectedKeys(Collection<Object> keys)
TxInvocationContext
addAllAffectedKeys
in interface TxInvocationContext
public Transaction getTransaction()
TxInvocationContext
InvocationContext.isOriginLocal()
, as Transaction
are not propagated from the node where tx was
started.
getTransaction
in interface TxInvocationContext
public boolean isTransactionValid()
isTransactionValid
in interface TxInvocationContext
public void setImplicitTransaction(boolean implicit)
TxInvocationContext
setImplicitTransaction
in interface TxInvocationContext
public boolean isImplicitTransaction()
isImplicitTransaction
in interface TxInvocationContext
public CacheTransaction getCacheTransaction()
getCacheTransaction
in interface TxInvocationContext
public void addAffectedKey(Object key)
addAffectedKey
in interface TxInvocationContext
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |