Package org.infinispan.context
Class SingleKeyNonTxInvocationContext
- java.lang.Object
-
- org.infinispan.context.SingleKeyNonTxInvocationContext
-
- All Implemented Interfaces:
Cloneable,EntryLookup,InvocationContext
@Deprecated public final class SingleKeyNonTxInvocationContext extends Object implements InvocationContext
Deprecated.Since 9.0, this class is going to be moved to an internal package.- Author:
- Mircea Markus, Sanne Grinovero
-
-
Constructor Summary
Constructors Constructor Description SingleKeyNonTxInvocationContext(Address origin)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddLockedKey(Object key)Deprecated.Tracks the given key as locked by this invocation context.voidclearLockedKeys()Deprecated.InvocationContextclone()Deprecated.Clones the invocation context.voidforEachEntry(BiConsumer<Object,CacheEntry> action)Deprecated.Execute an action for each entry in the context.CacheEntrygetCacheEntry()Deprecated.ClassLoadergetClassLoader()Deprecated.Returns the class loader associated with this invocationObjectgetKey()Deprecated.Set<Object>getLockedKeys()Deprecated.Returns the set of keys that are locked for writing.ObjectgetLockOwner()Deprecated.Returns the in behalf of which locks will be acquired.Map<Object,CacheEntry>getLookedUpEntries()Deprecated.Retrieves a map of entries looked up within the current scope.AddressgetOrigin()Deprecated.booleanhasLockedKey(Object key)Deprecated.Returns true if the lock being tested is already held in the current scope, false otherwise.booleanisEntryRemovedInContext(Object key)Deprecated.booleanisInTxScope()Deprecated.Returns true if this call is performed in the context of an transaction, false otherwise.booleanisKeyEquals(Object key)Deprecated.booleanisOriginLocal()Deprecated.Returns true if the call was originated locally, false if it is the result of a remote rpc.intlookedUpEntriesCount()Deprecated.CacheEntrylookupEntry(Object key)Deprecated.Retrieves an entry from the collection of looked up entries in the current scope.voidputLookedUpEntry(Object key, CacheEntry e)Deprecated.Puts an entry in the registry of looked up entries in the current scope.voidremoveLookedUpEntry(Object key)Deprecated.voidresetState()Deprecated.voidsetClassLoader(ClassLoader classLoader)Deprecated.Sets the class loader associated for this invocationvoidsetLockOwner(Object lockOwner)Deprecated.Sets the object to be used by lock owner.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.context.EntryLookup
forEachValue, removeLookedUpEntries
-
Methods inherited from interface org.infinispan.context.InvocationContext
replaceValue
-
-
-
-
Constructor Detail
-
SingleKeyNonTxInvocationContext
public SingleKeyNonTxInvocationContext(Address origin)
Deprecated.
-
-
Method Detail
-
isOriginLocal
public boolean isOriginLocal()
Deprecated.Description copied from interface:InvocationContextReturns true if the call was originated locally, false if it is the result of a remote rpc.- Specified by:
isOriginLocalin interfaceInvocationContext
-
isInTxScope
public boolean isInTxScope()
Deprecated.Description copied from interface:InvocationContextReturns true if this call is performed in the context of an transaction, false otherwise.- Specified by:
isInTxScopein interfaceInvocationContext
-
getLockOwner
public Object getLockOwner()
Deprecated.Description copied from interface:InvocationContextReturns the in behalf of which locks will be acquired.- Specified by:
getLockOwnerin interfaceInvocationContext
-
setLockOwner
public void setLockOwner(Object lockOwner)
Deprecated.Description copied from interface:InvocationContextSets the object to be used by lock owner.- Specified by:
setLockOwnerin interfaceInvocationContext
-
clone
public InvocationContext clone()
Deprecated.Description copied from interface:InvocationContextClones the invocation context.- Specified by:
clonein interfaceInvocationContext- Overrides:
clonein classObject- Returns:
- A cloned instance of this invocation context instance
-
getLockedKeys
public Set<Object> getLockedKeys()
Deprecated.Description copied from interface:InvocationContextReturns the set of keys that are locked for writing.- Specified by:
getLockedKeysin interfaceInvocationContext
-
clearLockedKeys
public void clearLockedKeys()
Deprecated.- Specified by:
clearLockedKeysin interfaceInvocationContext
-
addLockedKey
public void addLockedKey(Object key)
Deprecated.Description copied from interface:InvocationContextTracks the given key as locked by this invocation context.- Specified by:
addLockedKeyin interfaceInvocationContext
-
lookupEntry
public CacheEntry lookupEntry(Object key)
Deprecated.Description copied from interface:EntryLookupRetrieves an entry from the collection of looked up entries in the current scope.- Specified by:
lookupEntryin interfaceEntryLookup- Parameters:
key- key to look up- Returns:
- an entry, or null if it cannot be found.
-
isKeyEquals
public boolean isKeyEquals(Object key)
Deprecated.
-
getLookedUpEntries
public Map<Object,CacheEntry> getLookedUpEntries()
Deprecated.Description copied from interface:EntryLookupRetrieves a map of entries looked up within the current scope. Note: The key inside the CacheEntry may benullif the key does not exist in the cache.- Specified by:
getLookedUpEntriesin interfaceEntryLookup- Returns:
- a map of looked up entries.
-
forEachEntry
public void forEachEntry(BiConsumer<Object,CacheEntry> action)
Deprecated.Description copied from interface:EntryLookupExecute an action for each entry in the context. Includes invalid entries, which have anullvalue and may also report anullkey.- Specified by:
forEachEntryin interfaceEntryLookup
-
lookedUpEntriesCount
public int lookedUpEntriesCount()
Deprecated.- Specified by:
lookedUpEntriesCountin interfaceEntryLookup- Returns:
- The number of entries wrapped in the context, including invalid entries.
-
putLookedUpEntry
public void putLookedUpEntry(Object key, CacheEntry e)
Deprecated.Description copied from interface:EntryLookupPuts an entry in the registry of looked up entries in the current scope.- Specified by:
putLookedUpEntryin interfaceEntryLookup- Parameters:
key- key to storee- entry to store
-
removeLookedUpEntry
public void removeLookedUpEntry(Object key)
Deprecated.- Specified by:
removeLookedUpEntryin interfaceEntryLookup
-
getKey
public Object getKey()
Deprecated.
-
getCacheEntry
public CacheEntry getCacheEntry()
Deprecated.
-
getOrigin
public Address getOrigin()
Deprecated.- Specified by:
getOriginin interfaceInvocationContext- Returns:
- the origin of the command, or null if the command originated locally
-
getClassLoader
public ClassLoader getClassLoader()
Deprecated.Description copied from interface:InvocationContextReturns the class loader associated with this invocation- Specified by:
getClassLoaderin interfaceInvocationContext- Returns:
- a class loader instance or null if no class loader was specifically associated
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
Deprecated.Description copied from interface:InvocationContextSets the class loader associated for this invocation- Specified by:
setClassLoaderin interfaceInvocationContext
-
hasLockedKey
public boolean hasLockedKey(Object key)
Deprecated.Description copied from interface:InvocationContextReturns true if the lock being tested is already held in the current scope, false otherwise.- Specified by:
hasLockedKeyin interfaceInvocationContext- Parameters:
key- lock to test
-
isEntryRemovedInContext
public boolean isEntryRemovedInContext(Object key)
Deprecated.- Specified by:
isEntryRemovedInContextin interfaceInvocationContext
-
resetState
public void resetState()
Deprecated.
-
-