public class NonTxInvocationContext extends AbstractInvocationContext
| Constructor and Description |
|---|
NonTxInvocationContext(Address origin) |
NonTxInvocationContext(int numEntries,
Address origin) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockedKey(Object key)
Tracks the given key as locked by this invocation context.
|
void |
clearLockedKeys() |
NonTxInvocationContext |
clone()
Clones the invocation context.
|
void |
forEachEntry(BiConsumer<Object,CacheEntry> action)
Execute an action for each entry in the context.
|
Set<Object> |
getLockedKeys()
Returns the set of keys that are locked for writing.
|
Object |
getLockOwner()
Returns the in behalf of which locks will be acquired.
|
Map<Object,CacheEntry> |
getLookedUpEntries()
Retrieves a map of entries looked up within the current scope.
|
boolean |
isInTxScope()
Returns true if this call is performed in the context of an transaction, false otherwise.
|
int |
lookedUpEntriesCount() |
CacheEntry |
lookupEntry(Object k)
Retrieves an entry from the collection of looked up entries in the current scope.
|
void |
putLookedUpEntry(Object key,
CacheEntry e)
Puts an entry in the registry of looked up entries in the current scope.
|
void |
removeLookedUpEntry(Object key) |
void |
setLockOwner(Object lockOwner)
Sets the object to be used by lock owner.
|
getOrigin, hasLockedKey, isEntryRemovedInContext, isOriginLocalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLockedKeysforEachValue, removeLookedUpEntriespublic NonTxInvocationContext(int numEntries,
Address origin)
public NonTxInvocationContext(Address origin)
public CacheEntry lookupEntry(Object k)
EntryLookupk - key to look uppublic void removeLookedUpEntry(Object key)
public void putLookedUpEntry(Object key, CacheEntry e)
EntryLookupkey - key to storee - entry to storepublic Map<Object,CacheEntry> getLookedUpEntries()
EntryLookupnull if the key does not exist in the cache.public void forEachEntry(BiConsumer<Object,CacheEntry> action)
EntryLookupnull value and may also report a null key.public int lookedUpEntriesCount()
public boolean isInTxScope()
InvocationContextpublic Object getLockOwner()
InvocationContextpublic void setLockOwner(Object lockOwner)
InvocationContextpublic NonTxInvocationContext clone()
InvocationContextclone in interface InvocationContextclone in class AbstractInvocationContextpublic void addLockedKey(Object key)
InvocationContextpublic Set<Object> getLockedKeys()
InvocationContextpublic void clearLockedKeys()
Copyright © 2021 JBoss by Red Hat. All rights reserved.