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 |
isEntryRemovedInContext(Object key) |
boolean |
isOriginLocal()
Returns true if the call was originated locally, false if it is the result of a remote rpc.
|
protected void |
onEntryValueReplaced(Object key,
InternalCacheEntry cacheEntry) |
boolean |
replaceValue(Object key,
InternalCacheEntry cacheEntry)
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 originLocal) |
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 final void setOriginLocal(boolean originLocal)
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 final boolean replaceValue(Object key, InternalCacheEntry cacheEntry)
InvocationContext
replaceValue
in interface InvocationContext
public final boolean isEntryRemovedInContext(Object key)
isEntryRemovedInContext
in interface InvocationContext
protected void onEntryValueReplaced(Object key, InternalCacheEntry cacheEntry)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.