public class NonTxInvocationContext extends AbstractInvocationContext
AbstractInvocationContext.ContextFlag| Modifier and Type | Field and Description |
|---|---|
protected Set<Object> |
lockedKeys |
protected Map<Object,CacheEntry> |
lookedUpEntries |
contextFlags| Constructor and Description |
|---|
NonTxInvocationContext(Equivalence<Object> keyEq) |
NonTxInvocationContext(int numEntries,
boolean local,
Equivalence<Object> keyEq) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockedKey(Object key)
Tracks the given key as locked by this invocation context.
|
void |
clearLockedKeys() |
void |
clearLookedUpEntries()
Clears the collection of entries looked up
|
NonTxInvocationContext |
clone()
Clones the invocation 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 aquired.
|
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.
|
boolean |
isOriginLocal()
Returns true if the call was originated locally, false if it is the result of a remote rpc.
|
CacheEntry |
lookupEntry(Object k)
Retrieves an entry from the collection of looked up entries in the current scope.
|
void |
putLookedUpEntries(Map<Object,CacheEntry> newLookedUpEntries) |
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 |
setOriginLocal(boolean originLocal) |
getClassLoader, getOrigin, hasLockedKey, isContextFlagSet, isEntryRemovedInContext, isUseFutureReturnType, onEntryValueReplaced, replaceValue, setClassLoader, setContextFlag, setContextFlag, setOrigin, setUseFutureReturnType, unsetContextFlagprotected final Map<Object,CacheEntry> lookedUpEntries
public NonTxInvocationContext(int numEntries,
boolean local,
Equivalence<Object> keyEq)
public NonTxInvocationContext(Equivalence<Object> keyEq)
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 void putLookedUpEntries(Map<Object,CacheEntry> newLookedUpEntries)
public void clearLookedUpEntries()
EntryLookuppublic Map<Object,CacheEntry> getLookedUpEntries()
EntryLookuppublic boolean isOriginLocal()
InvocationContextpublic void setOriginLocal(boolean originLocal)
public boolean isInTxScope()
InvocationContextpublic Object getLockOwner()
InvocationContextpublic NonTxInvocationContext clone()
InvocationContextclone in interface InvocationContextclone in class AbstractInvocationContextpublic void addLockedKey(Object key)
InvocationContextpublic Set<Object> getLockedKeys()
InvocationContextpublic void clearLockedKeys()
Copyright © 2013 JBoss, a division of Red Hat. All rights reserved.