|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.InvocationContext
public class InvocationContext
This context holds information specific to a method invocation.
Constructor Summary | |
---|---|
InvocationContext()
|
Method Summary | |
---|---|
void |
addInvocationLockAcquired(NodeLock l)
|
void |
addInvocationLocksAcquired(Collection<NodeLock> locks)
|
InvocationContext |
clone()
|
boolean |
equals(Object o)
|
static InvocationContext |
fromMethodCall(MethodCall methodCall)
Factory method that creates a context with a given method call. |
VisitableCommand |
getCommand()
Deprecated. |
long |
getContextLockAcquisitionTimeout(long timeout)
If the acq timeout if overwritten for current call, then return that one. |
GlobalTransaction |
getGlobalTransaction()
Retrieves the global transaction associated with this invocation |
List<NodeLock> |
getInvocationLocksAcquired()
|
MethodCall |
getMethodCall()
Deprecated. |
Option |
getOptionOverrides()
Retrieves the option overrides associated with this invocation |
Transaction |
getTransaction()
Retrieves the transaction associated with this invocation |
TransactionEntry |
getTransactionEntry()
|
int |
hashCode()
|
boolean |
isLocalRollbackOnly()
|
boolean |
isLockingSuppressed()
|
boolean |
isOptionsUninitialised()
|
boolean |
isOriginLocal()
Tests if this invocation originated locally or from a remote cache. |
boolean |
isTxHasMods()
|
boolean |
isValidTransaction()
|
void |
reset()
Resets this to the defaults used when constructing an invocation context object |
void |
setCommand(VisitableCommand cacheCommand)
Deprecated. |
void |
setGlobalTransaction(GlobalTransaction globalTransaction)
Sets the global transaction associated with this invocation |
void |
setLocalRollbackOnly(boolean localRollbackOnly)
Wipe list of previously peeked nodes. |
void |
setMethodCall(MethodCall methodCall)
Deprecated. not used anymore. Interceptors will get a ReplicableCommand instance passed in along with an InvocationContext. |
void |
setOptionOverrides(Option optionOverrides)
Sets the option overrides associated with this invocation |
void |
setOriginLocal(boolean originLocal)
If set to true, the invocation is assumed to have originated locally. |
void |
setState(InvocationContext template)
Sets the state of the InvocationContext based on the template context passed in |
void |
setTransaction(Transaction transaction)
Sets the transaction associated with this invocation |
void |
setTransactionEntry(TransactionEntry transactionEntry)
Sets the transaction entry to be associated with the current thread. |
void |
setTxHasMods(boolean b)
|
void |
throwIfNeeded(Throwable e)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InvocationContext()
Method Detail |
---|
public void setLocalRollbackOnly(boolean localRollbackOnly)
public Transaction getTransaction()
public void setTransaction(Transaction transaction)
transaction
- public TransactionEntry getTransactionEntry()
public void setTransactionEntry(TransactionEntry transactionEntry)
transactionEntry
- transaction entry to setpublic GlobalTransaction getGlobalTransaction()
public void setGlobalTransaction(GlobalTransaction globalTransaction)
globalTransaction
- public Option getOptionOverrides()
public boolean isOptionsUninitialised()
public void setOptionOverrides(Option optionOverrides)
optionOverrides
- public boolean isOriginLocal()
public List<NodeLock> getInvocationLocksAcquired()
public void addInvocationLocksAcquired(Collection<NodeLock> locks)
public void addInvocationLockAcquired(NodeLock l)
public boolean isLockingSuppressed()
PessimisticLockInterceptor
.public void setOriginLocal(boolean originLocal)
originLocal
- public String toString()
toString
in class Object
public boolean isTxHasMods()
public void setTxHasMods(boolean b)
public boolean isLocalRollbackOnly()
public void reset()
public InvocationContext clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void setState(InvocationContext template)
template
- public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
@Deprecated public MethodCall getMethodCall()
@Deprecated public void setMethodCall(MethodCall methodCall)
ReplicableCommand
instance passed in along with an InvocationContext.
methodCall
- methodcall to setpublic static InvocationContext fromMethodCall(MethodCall methodCall)
methodCall
- methodcall to use
public long getContextLockAcquisitionTimeout(long timeout)
@Deprecated public void setCommand(VisitableCommand cacheCommand)
@Deprecated public VisitableCommand getCommand()
setCommand(org.jboss.cache.commands.VisitableCommand)
public boolean isValidTransaction()
public void throwIfNeeded(Throwable e) throws Throwable
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |