public interface InvocationContext extends EntryLookup, Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addLockedKey(Object key)
Tracks the given key as locked by this invocation context.
|
void |
clearLockedKeys() |
InvocationContext |
clone()
Clones the invocation context.
|
ClassLoader |
getClassLoader()
Returns the class loader associated with this invocation
|
Set<Object> |
getLockedKeys()
Returns the set of keys that are locked for writing.
|
Object |
getLockOwner()
Returns the in behalf of which locks will be aquired.
|
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 |
isInTxScope()
Returns true if this call is performed in the context of an transaction, 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,
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
|
getLookedUpEntries, lookupEntry, putLookedUpEntry, removeLookedUpEntry
boolean isOriginLocal()
Address getOrigin()
boolean isInTxScope()
Object getLockOwner()
InvocationContext clone()
void clearLockedKeys()
ClassLoader getClassLoader()
void setClassLoader(ClassLoader classLoader)
classLoader
- void addLockedKey(Object key)
boolean hasLockedKey(Object key)
key
- lock to testboolean replaceValue(Object key, InternalCacheEntry cacheEntry)
boolean isEntryRemovedInContext(Object key)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.