Class SingleKeyNonTxInvocationContext

    • Constructor Detail

      • SingleKeyNonTxInvocationContext

        public SingleKeyNonTxInvocationContext​(Address origin)
        Deprecated.
    • Method Detail

      • isOriginLocal

        public boolean isOriginLocal()
        Deprecated.
        Description copied from interface: InvocationContext
        Returns true if the call was originated locally, false if it is the result of a remote rpc.
        Specified by:
        isOriginLocal in interface InvocationContext
      • isInTxScope

        public boolean isInTxScope()
        Deprecated.
        Description copied from interface: InvocationContext
        Returns true if this call is performed in the context of an transaction, false otherwise.
        Specified by:
        isInTxScope in interface InvocationContext
      • lookupEntry

        public CacheEntry lookupEntry​(Object key)
        Deprecated.
        Description copied from interface: EntryLookup
        Retrieves an entry from the collection of looked up entries in the current scope.

        Specified by:
        lookupEntry in interface EntryLookup
        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: EntryLookup
        Retrieves a map of entries looked up within the current scope.

        Note: The key inside the CacheEntry may be null if the key does not exist in the cache.

        Specified by:
        getLookedUpEntries in interface EntryLookup
        Returns:
        a map of looked up entries.
      • forEachEntry

        public void forEachEntry​(BiConsumer<Object,​CacheEntry> action)
        Deprecated.
        Description copied from interface: EntryLookup
        Execute an action for each entry in the context. Includes invalid entries, which have a null value and may also report a null key.
        Specified by:
        forEachEntry in interface EntryLookup
      • lookedUpEntriesCount

        public int lookedUpEntriesCount()
        Deprecated.
        Specified by:
        lookedUpEntriesCount in interface EntryLookup
        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: EntryLookup
        Puts an entry in the registry of looked up entries in the current scope.

        Specified by:
        putLookedUpEntry in interface EntryLookup
        Parameters:
        key - key to store
        e - entry to store
      • getKey

        public Object getKey()
        Deprecated.
      • getCacheEntry

        public CacheEntry getCacheEntry()
        Deprecated.
      • getOrigin

        public Address getOrigin()
        Deprecated.
        Specified by:
        getOrigin in interface InvocationContext
        Returns:
        the origin of the command, or null if the command originated locally
      • getClassLoader

        public ClassLoader getClassLoader()
        Deprecated.
        Description copied from interface: InvocationContext
        Returns the class loader associated with this invocation
        Specified by:
        getClassLoader in interface InvocationContext
        Returns:
        a class loader instance or null if no class loader was specifically associated
      • hasLockedKey

        public boolean hasLockedKey​(Object key)
        Deprecated.
        Description copied from interface: InvocationContext
        Returns true if the lock being tested is already held in the current scope, false otherwise.
        Specified by:
        hasLockedKey in interface InvocationContext
        Parameters:
        key - lock to test
      • resetState

        public void resetState()
        Deprecated.