@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 |
isKeyEquals(Object key)
Deprecated.
|
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, wait
replaceValue
public SingleKeyNonTxInvocationContext(Address origin, Equivalence<Object> keyEquivalence)
public boolean isOriginLocal()
InvocationContext
isOriginLocal
in interface InvocationContext
public boolean isInTxScope()
InvocationContext
isInTxScope
in interface InvocationContext
public Object getLockOwner()
InvocationContext
getLockOwner
in interface InvocationContext
public void setLockOwner(Object lockOwner)
InvocationContext
setLockOwner
in interface InvocationContext
public InvocationContext clone()
InvocationContext
clone
in interface InvocationContext
clone
in class Object
public Set<Object> getLockedKeys()
InvocationContext
getLockedKeys
in interface InvocationContext
public void clearLockedKeys()
clearLockedKeys
in interface InvocationContext
public void addLockedKey(Object key)
InvocationContext
addLockedKey
in interface InvocationContext
public CacheEntry lookupEntry(Object key)
EntryLookup
lookupEntry
in interface EntryLookup
key
- key to look uppublic boolean isKeyEquals(Object key)
public Map<Object,CacheEntry> getLookedUpEntries()
EntryLookup
getLookedUpEntries
in interface EntryLookup
public void putLookedUpEntry(Object key, CacheEntry e)
EntryLookup
putLookedUpEntry
in interface EntryLookup
key
- key to storee
- entry to storepublic void removeLookedUpEntry(Object key)
removeLookedUpEntry
in interface EntryLookup
public Object getKey()
public CacheEntry getCacheEntry()
public Address getOrigin()
getOrigin
in interface InvocationContext
public ClassLoader getClassLoader()
InvocationContext
getClassLoader
in interface InvocationContext
public void setClassLoader(ClassLoader classLoader)
InvocationContext
setClassLoader
in interface InvocationContext
public boolean hasLockedKey(Object key)
InvocationContext
hasLockedKey
in interface InvocationContext
key
- lock to testpublic boolean isEntryRemovedInContext(Object key)
isEntryRemovedInContext
in interface InvocationContext
public void resetState()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.