Class CacheInvokeEntry<K,​V>

  • All Implemented Interfaces:
    javax.cache.Cache.Entry<K,​V>, javax.cache.processor.MutableEntry<K,​V>

    public class CacheInvokeEntry<K,​V>
    extends CacheLazyEntry<K,​V>
    implements javax.cache.processor.MutableEntry<K,​V>
    Implementation of MutableEntry passed to the EntryProcessor.process(MutableEntry, Object...).
    • Constructor Detail

      • CacheInvokeEntry

        public CacheInvokeEntry​(KeyCacheObject keyObj,
                                @Nullable
                                @Nullable CacheObject valObj,
                                GridCacheVersion ver,
                                boolean keepBinary,
                                GridCacheEntryEx entry)
        Constructor.
        Parameters:
        keyObj - Key cache object.
        valObj - Cache object value.
        ver - Entry version.
        keepBinary - Keep binary flag.
        entry - Original entry.
      • CacheInvokeEntry

        public CacheInvokeEntry​(KeyCacheObject keyObj,
                                @Nullable
                                K key,
                                @Nullable
                                @Nullable CacheObject valObj,
                                @Nullable
                                V val,
                                GridCacheVersion ver,
                                boolean keepBinary,
                                GridCacheEntryEx entry)
        Parameters:
        keyObj - Key cache object.
        key - Key value.
        valObj - Value cache object.
        val - Value.
        ver - Entry version.
        keepBinary - Keep binary flag.
        entry - Grid cache entry.
    • Method Detail

      • exists

        public boolean exists()
        Specified by:
        exists in interface javax.cache.processor.MutableEntry<K,​V>
      • remove

        public void remove()
        Specified by:
        remove in interface javax.cache.processor.MutableEntry<K,​V>
      • setValue

        public void setValue​(V val)
        Specified by:
        setValue in interface javax.cache.processor.MutableEntry<K,​V>
      • oldVal

        public V oldVal()
        Returns:
        Return origin value, before modification.
      • unwrap

        public <T> T unwrap​(Class<T> cls)
        Specified by:
        unwrap in interface javax.cache.Cache.Entry<K,​V>
        Overrides:
        unwrap in class CacheLazyEntry<K,​V>