Class MutableJCacheEntry<K,V>

java.lang.Object
org.infinispan.jcache.MutableJCacheEntry<K,V>
Type Parameters:
K - the type of key maintained by this cache entry
V - the type of value maintained by this cache entry
All Implemented Interfaces:
javax.cache.Cache.Entry<K,V>, javax.cache.processor.MutableEntry<K,V>

public final class MutableJCacheEntry<K,V> extends Object implements javax.cache.processor.MutableEntry<K,V>
Infinispan implementation of MutableEntry designed to be passed as parameter to EntryProcessor.process(javax.cache.processor.MutableEntry, Object...).
Since:
5.3
Author:
Galder ZamarreƱo
  • Constructor Details

    • MutableJCacheEntry

      public MutableJCacheEntry(org.infinispan.commons.api.BasicCache<K,V> cache, org.infinispan.commons.api.BasicCache<K,V> cacheWithoutStats, K key, V value)
  • Method Details

    • 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 value)
      Specified by:
      setValue in interface javax.cache.processor.MutableEntry<K,V>
    • getKey

      public K getKey()
      Specified by:
      getKey in interface javax.cache.Cache.Entry<K,V>
    • getValue

      public V getValue()
      Specified by:
      getValue in interface javax.cache.Cache.Entry<K,V>
      Specified by:
      getValue in interface javax.cache.processor.MutableEntry<K,V>
    • unwrap

      public <T> T unwrap(Class<T> clazz)
      Specified by:
      unwrap in interface javax.cache.Cache.Entry<K,V>
    • getNewValue

      public V getNewValue()
    • getOperation

      public MutableJCacheEntry.Operation getOperation()