|
||||||||||
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)
|
void |
clearInvocationLocksAcquired()
|
InvocationContext |
clone()
|
boolean |
equals(Object o)
|
static InvocationContext |
fromMethodCall(MethodCall methodCall)
Factory method that creates a context with a given method call. |
long |
getContextLockAcquisitionTimeout(long defaultFalue)
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()
|
Option |
getOptionOverrides()
Retrieves the option overrides associated with this invocation |
Transaction |
getTransaction()
Retrieves the transaction associated with this invocation |
int |
hashCode()
|
boolean |
isCacheLoaderHasMods()
Cache loader might have mods which are different from TX's mods; e.g. when cache is local and passivation is on. |
boolean |
isLocalRollbackOnly()
|
boolean |
isOptionsUninitialised()
|
boolean |
isOriginLocal()
Tests if this invocation originated locally or from a remote cache. |
boolean |
isTxHasMods()
|
void |
reset()
Resets this to the defaults used when constructing an invocation context object |
void |
setCacheLoaderHasMods(boolean cacheLoaderHasMods)
|
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)
Sets the method call associated with this invocation. |
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 |
setTxHasMods(boolean b)
|
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 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 void clearInvocationLocksAcquired()
public void setOriginLocal(boolean originLocal)
originLocal
- public String toString()
toString
in class Object
public boolean isTxHasMods()
public void setTxHasMods(boolean b)
public boolean isCacheLoaderHasMods()
public void setCacheLoaderHasMods(boolean cacheLoaderHasMods)
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
public MethodCall getMethodCall()
public void setMethodCall(MethodCall methodCall)
methodCall
- methodcall to setpublic static InvocationContext fromMethodCall(MethodCall methodCall)
methodCall
- methodcall to use
public long getContextLockAcquisitionTimeout(long defaultFalue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |