public abstract class AbstractInvocationContext extends Object implements InvocationContext
Constructor and Description |
---|
AbstractInvocationContext() |
Modifier and Type | Method and Description |
---|---|
AbstractInvocationContext |
clone()
Clones the invocation context.
|
ClassLoader |
getClassLoader()
Returns the class loader associated with this invocation
|
Address |
getOrigin()
Get the origin of the command, or null if the command originated locally
|
boolean |
hasLockedKey(Object key)
Returns true if the lock being tested is already held in the current scope, false otherwise.
|
boolean |
isOriginLocal()
Returns true if the call was originated locally, false if it is the result of a remote rpc.
|
boolean |
replaceValue(Object key,
Object value)
Tries to replace the value of the wrapped entry associated with the given key in the context, if one exists.
|
void |
setClassLoader(ClassLoader classLoader)
Sets the class loader associated for this invocation
|
void |
setOrigin(Address origin) |
void |
setOriginLocal(boolean isOriginLocal) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLockedKey, clearLockedKeys, getLockedKeys, getLockOwner, isInTxScope
getLookedUpEntries, lookupEntry, putLookedUpEntry, removeLookedUpEntry
public final Address getOrigin()
InvocationContext
getOrigin
in interface InvocationContext
public final void setOrigin(Address origin)
public boolean isOriginLocal()
InvocationContext
isOriginLocal
in interface InvocationContext
public void setOriginLocal(boolean isOriginLocal)
public boolean hasLockedKey(Object key)
InvocationContext
hasLockedKey
in interface InvocationContext
key
- lock to testpublic AbstractInvocationContext clone()
InvocationContext
clone
in interface InvocationContext
clone
in class Object
public final ClassLoader getClassLoader()
InvocationContext
getClassLoader
in interface InvocationContext
public final void setClassLoader(ClassLoader classLoader)
InvocationContext
setClassLoader
in interface InvocationContext
public boolean replaceValue(Object key, Object value)
InvocationContext
replaceValue
in interface InvocationContext
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.