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, waitaddLockedKey, clearLockedKeys, getLockedKeys, getLockOwner, isInTxScopegetLookedUpEntries, lookupEntry, putLookedUpEntry, removeLookedUpEntrypublic final Address getOrigin()
InvocationContextgetOrigin in interface InvocationContextpublic final void setOrigin(Address origin)
public boolean isOriginLocal()
InvocationContextisOriginLocal in interface InvocationContextpublic final void setOriginLocal(boolean originLocal)
public boolean hasLockedKey(Object key)
InvocationContexthasLockedKey in interface InvocationContextkey - lock to testpublic AbstractInvocationContext clone()
InvocationContextclone in interface InvocationContextclone in class Objectpublic final ClassLoader getClassLoader()
InvocationContextgetClassLoader in interface InvocationContextpublic final void setClassLoader(ClassLoader classLoader)
InvocationContextsetClassLoader in interface InvocationContextpublic final boolean replaceValue(Object key, InternalCacheEntry cacheEntry)
InvocationContextreplaceValue in interface InvocationContextpublic final boolean isEntryRemovedInContext(Object key)
isEntryRemovedInContext in interface InvocationContextprotected void onEntryValueReplaced(Object key, InternalCacheEntry cacheEntry)
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.