@Deprecated public final class SingleKeyNonTxInvocationContext extends Object implements InvocationContext
| Constructor and Description |
|---|
SingleKeyNonTxInvocationContext(Address origin,
Equivalence<Object> keyEquivalence)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLockedKey(Object key)
Deprecated.
Tracks the given key as locked by this invocation context.
|
void |
clearLockedKeys()
Deprecated.
|
InvocationContext |
clone()
Deprecated.
Clones the invocation context.
|
CacheEntry |
getCacheEntry()
Deprecated.
|
ClassLoader |
getClassLoader()
Deprecated.
Returns the class loader associated with this invocation
|
Object |
getKey()
Deprecated.
|
Set<Object> |
getLockedKeys()
Deprecated.
Returns the set of keys that are locked for writing.
|
Object |
getLockOwner()
Deprecated.
Returns the in behalf of which locks will be acquired.
|
Map<Object,CacheEntry> |
getLookedUpEntries()
Deprecated.
Retrieves a map of entries looked up within the current scope.
|
Address |
getOrigin()
Deprecated.
|
boolean |
hasLockedKey(Object key)
Deprecated.
Returns true if the lock being tested is already held in the current scope, false otherwise.
|
boolean |
isEntryRemovedInContext(Object key)
Deprecated.
|
boolean |
isInTxScope()
Deprecated.
Returns true if this call is performed in the context of an transaction, false otherwise.
|
boolean |
isOriginLocal()
Deprecated.
Returns true if the call was originated locally, false if it is the result of a remote rpc.
|
CacheEntry |
lookupEntry(Object key)
Deprecated.
Retrieves an entry from the collection of looked up entries in the current scope.
|
void |
putLookedUpEntry(Object key,
CacheEntry e)
Deprecated.
Puts an entry in the registry of looked up entries in the current scope.
|
void |
removeLookedUpEntry(Object key)
Deprecated.
|
void |
resetState()
Deprecated.
|
void |
setClassLoader(ClassLoader classLoader)
Deprecated.
Sets the class loader associated for this invocation
|
void |
setLockOwner(Object lockOwner)
Deprecated.
Sets the object to be used by lock owner.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreplaceValuepublic SingleKeyNonTxInvocationContext(Address origin, Equivalence<Object> keyEquivalence)
public boolean isOriginLocal()
InvocationContextisOriginLocal in interface InvocationContextpublic boolean isInTxScope()
InvocationContextisInTxScope in interface InvocationContextpublic Object getLockOwner()
InvocationContextgetLockOwner in interface InvocationContextpublic void setLockOwner(Object lockOwner)
InvocationContextsetLockOwner in interface InvocationContextpublic InvocationContext clone()
InvocationContextclone in interface InvocationContextclone in class Objectpublic Set<Object> getLockedKeys()
InvocationContextgetLockedKeys in interface InvocationContextpublic void clearLockedKeys()
clearLockedKeys in interface InvocationContextpublic void addLockedKey(Object key)
InvocationContextaddLockedKey in interface InvocationContextpublic CacheEntry lookupEntry(Object key)
EntryLookuplookupEntry in interface EntryLookupkey - key to look uppublic Map<Object,CacheEntry> getLookedUpEntries()
EntryLookupgetLookedUpEntries in interface EntryLookuppublic void putLookedUpEntry(Object key, CacheEntry e)
EntryLookupputLookedUpEntry in interface EntryLookupkey - key to storee - entry to storepublic void removeLookedUpEntry(Object key)
removeLookedUpEntry in interface EntryLookuppublic Object getKey()
public CacheEntry getCacheEntry()
public Address getOrigin()
getOrigin in interface InvocationContextpublic ClassLoader getClassLoader()
InvocationContextgetClassLoader in interface InvocationContextpublic void setClassLoader(ClassLoader classLoader)
InvocationContextsetClassLoader in interface InvocationContextpublic boolean hasLockedKey(Object key)
InvocationContexthasLockedKey in interface InvocationContextkey - lock to testpublic boolean isEntryRemovedInContext(Object key)
isEntryRemovedInContext in interface InvocationContextpublic void resetState()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.