|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.context.impl.AbstractInvocationContext org.infinispan.context.SingleKeyNonTxInvocationContext
public class SingleKeyNonTxInvocationContext
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
AbstractInvocationContext.ContextFlag |
Field Summary |
---|
Fields inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
contextFlags, flags |
Constructor Summary | |
---|---|
SingleKeyNonTxInvocationContext(boolean originLocal)
|
Method Summary | |
---|---|
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 |
CacheEntry |
getCacheEntry()
|
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 key)
Retrieves an entry from the collection of looked up entries in the current scope. |
void |
putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)
|
void |
putLookedUpEntry(Object key,
CacheEntry e)
Puts an entry in the registry of looked up entries in the current scope. |
void |
removeLookedUpEntry(Object key)
|
Methods inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
clone, getClassLoader, getFlags, getOrigin, hasFlag, hasLockedKey, isContextFlagSet, isFlagsUninitialized, isUseFutureReturnType, reset, setClassLoader, setContextFlag, setContextFlag, setFlags, setFlags, setOrigin, setUseFutureReturnType, toString, unsetContextFlag |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingleKeyNonTxInvocationContext(boolean originLocal)
Method Detail |
---|
public boolean isOriginLocal()
InvocationContext
public boolean isInTxScope()
InvocationContext
public Object getLockOwner()
InvocationContext
public Set<Object> getLockedKeys()
InvocationContext
public void clearLockedKeys()
public void addLockedKey(Object key)
InvocationContext
public CacheEntry lookupEntry(Object key)
EntryLookup
key
- key to look up
public Map<Object,CacheEntry> getLookedUpEntries()
EntryLookup
public void putLookedUpEntry(Object key, CacheEntry e)
EntryLookup
key
- key to storee
- entry to storepublic void putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)
public void removeLookedUpEntry(Object key)
public void clearLookedUpEntries()
EntryLookup
public CacheEntry getCacheEntry()
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |