|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.context.impl.AbstractInvocationContext
org.infinispan.context.impl.NonTxInvocationContext
public class NonTxInvocationContext
Context to be used for non transactional calls, both remote and local.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
AbstractInvocationContext.ContextFlag |
Field Summary | |
---|---|
protected BidirectionalLinkedHashMap<Object,CacheEntry> |
lookedUpEntries
|
Fields inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
contextFlags, flags |
Constructor Summary | |
---|---|
NonTxInvocationContext()
|
Method Summary | |
---|---|
void |
clearLookedUpEntries()
Clears the collection of entries looked up |
NonTxInvocationContext |
clone()
|
Object |
getLockOwner()
Returns the in behalf of which locks will be aquired. |
BidirectionalMap<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> 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)
|
void |
reset()
|
void |
setOriginLocal(boolean originLocal)
|
Methods inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
getFlags, hasFlag, hasLockedEntries, hasLockedKey, isContextFlagSet, isFlagsUninitialized, isUseFutureReturnType, setContextFlag, setContextFlag, setFlags, setFlags, setUseFutureReturnType, toString, unsetContextFlag |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected BidirectionalLinkedHashMap<Object,CacheEntry> lookedUpEntries
Constructor Detail |
---|
public NonTxInvocationContext()
Method Detail |
---|
public CacheEntry lookupEntry(Object k)
EntryLookup
k
- key to look up
public void removeLookedUpEntry(Object key)
public void putLookedUpEntry(Object key, CacheEntry e)
EntryLookup
key
- key to storee
- entry to storepublic void putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)
public void clearLookedUpEntries()
EntryLookup
public BidirectionalMap<Object,CacheEntry> getLookedUpEntries()
EntryLookup
public boolean isOriginLocal()
InvocationContext
public void setOriginLocal(boolean originLocal)
public boolean isInTxScope()
InvocationContext
public Object getLockOwner()
InvocationContext
public void reset()
reset
in interface FlagContainer
reset
in class AbstractInvocationContext
public NonTxInvocationContext clone()
clone
in interface InvocationContext
clone
in class AbstractInvocationContext
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |