|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.context.impl.AbstractInvocationContext
org.infinispan.context.impl.AbstractTxInvocationContext
public abstract class AbstractTxInvocationContext
Support class for TxInvocationContext
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
AbstractInvocationContext.ContextFlag |
Field Summary | |
---|---|
protected Set<Object> |
affectedKeys
|
Fields inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
contextFlags, flags |
Constructor Summary | |
---|---|
AbstractTxInvocationContext()
|
Method Summary | |
---|---|
void |
addAffectedKeys(Object... keys)
Registers a new participant with the transaction. |
static void |
assertTransactionValid(TxInvocationContext ctx)
Tests whether the caller is in a valid transaction. |
AbstractTxInvocationContext |
clone()
|
Set<Object> |
getAffectedKeys()
Returns the set of keys that are affected by this transaction. |
boolean |
hasModifications()
Were there any modifications performed within the tx's scope? |
static boolean |
isActive(Transaction tx)
Returns true if transaction is ACTIVE, false otherwise |
static boolean |
isPreparing(Transaction tx)
Returns true if transaction is PREPARING, false otherwise |
static boolean |
isValid(Transaction tx)
Return s true of tx's status is ACTIVE or PREPARING |
boolean |
isValidRunningTx()
Returns true if the current tx is either ACTIVE or PREPARING, false otherwise. |
Methods inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
getFlags, hasFlag, hasLockedEntries, hasLockedKey, isContextFlagSet, isFlagsUninitialized, isUseFutureReturnType, reset, setContextFlag, setContextFlag, setFlags, setFlags, setUseFutureReturnType, toString, unsetContextFlag |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.infinispan.context.impl.TxInvocationContext |
---|
getGlobalTransaction, getModifications, getRunningTransaction |
Methods inherited from interface org.infinispan.context.InvocationContext |
---|
getLockOwner, hasLockedEntries, isInTxScope, isOriginLocal, isUseFutureReturnType, setUseFutureReturnType |
Methods inherited from interface org.infinispan.context.EntryLookup |
---|
clearLookedUpEntries, getLookedUpEntries, hasLockedKey, lookupEntry, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntry |
Methods inherited from interface org.infinispan.context.FlagContainer |
---|
getFlags, hasFlag, isFlagsUninitialized, reset, setFlags, setFlags |
Field Detail |
---|
protected Set<Object> affectedKeys
Constructor Detail |
---|
public AbstractTxInvocationContext()
Method Detail |
---|
public boolean hasModifications()
TxInvocationContext
hasModifications
in interface TxInvocationContext
public Set<Object> getAffectedKeys()
TxInvocationContext
getAffectedKeys
in interface TxInvocationContext
public boolean isValidRunningTx()
TxInvocationContext
isValidRunningTx
in interface TxInvocationContext
public void addAffectedKeys(Object... keys)
TxInvocationContext
addAffectedKeys
in interface TxInvocationContext
public static boolean isValid(Transaction tx)
tx
-
public static boolean isActive(Transaction tx)
public static boolean isPreparing(Transaction tx)
public static void assertTransactionValid(TxInvocationContext ctx)
public AbstractTxInvocationContext clone()
clone
in interface InvocationContext
clone
in class AbstractInvocationContext
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |