|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.context.InvocationContextFlagsOverride
public class InvocationContextFlagsOverride
Wraps an existing InvocationContext without changing the context directly
but making sure the specified flags are considered enabled.
| Constructor Summary | |
|---|---|
InvocationContextFlagsOverride(InvocationContext delegate,
Set<Flag> flags)
Wraps an existing InvocationContext without changing the context directly
but making sure the specified flags are considered enabled. |
|
| Method Summary | |
|---|---|
void |
clearLookedUpEntries()
Clears the collection of entries looked up |
InvocationContextFlagsOverride |
clone()
|
Set<Flag> |
getFlags()
|
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. |
BidirectionalMap<Object,CacheEntry> |
getLookedUpEntries()
Retrieves a map of entries looked up within the current scope. |
Address |
getOrigin()
Get the origin of the command, or null if the command originated locally |
boolean |
hasFlag(Flag o)
|
boolean |
hasLockedKey(Object key)
Using this method should always ensure locks checked in the appropriate 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. |
boolean |
isUseFutureReturnType()
|
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)
|
void |
reset()
|
void |
setFlags(Collection<Flag> newFlags)
|
void |
setFlags(Flag... newFlags)
|
void |
setUseFutureReturnType(boolean useFutureReturnType)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvocationContextFlagsOverride(InvocationContext delegate,
Set<Flag> flags)
InvocationContext without changing the context directly
but making sure the specified flags are considered enabled.
delegate - flags - | Method Detail |
|---|
public CacheEntry lookupEntry(Object key)
EntryLookup
lookupEntry in interface EntryLookupkey - key to look up
public BidirectionalMap<Object,CacheEntry> getLookedUpEntries()
EntryLookup
getLookedUpEntries in interface EntryLookup
public void putLookedUpEntry(Object key,
CacheEntry e)
EntryLookup
putLookedUpEntry in interface EntryLookupkey - key to storee - entry to storepublic void putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)
putLookedUpEntries in interface EntryLookuppublic void removeLookedUpEntry(Object key)
removeLookedUpEntry in interface EntryLookuppublic void clearLookedUpEntries()
EntryLookup
clearLookedUpEntries in interface EntryLookuppublic boolean hasLockedKey(Object key)
EntryLookup
hasLockedKey in interface EntryLookupkey - lock to test
public boolean hasFlag(Flag o)
hasFlag in interface FlagContainerpublic Set<Flag> getFlags()
getFlags in interface FlagContainerpublic void setFlags(Flag... newFlags)
setFlags in interface FlagContainerpublic void setFlags(Collection<Flag> newFlags)
setFlags in interface FlagContainerpublic void reset()
reset in interface FlagContainerpublic boolean isOriginLocal()
InvocationContext
isOriginLocal in interface InvocationContextpublic boolean isInTxScope()
InvocationContext
isInTxScope in interface InvocationContextpublic Object getLockOwner()
InvocationContext
getLockOwner in interface InvocationContextpublic boolean isUseFutureReturnType()
isUseFutureReturnType in interface InvocationContextpublic void setUseFutureReturnType(boolean useFutureReturnType)
setUseFutureReturnType in interface InvocationContextpublic Set<Object> getLockedKeys()
InvocationContext
getLockedKeys in interface InvocationContextpublic Address getOrigin()
InvocationContext
getOrigin in interface InvocationContextpublic InvocationContextFlagsOverride clone()
clone in interface InvocationContextclone in class Object
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||