org.infinispan.jcache
Class MutableJCacheEntry<K,V>

java.lang.Object
  extended by 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.Cache.MutableEntry<K,V>

public final class MutableJCacheEntry<K,V>
extends Object
implements javax.cache.Cache.MutableEntry<K,V>

Infinispan implementation of Cache.MutableEntry designed to be passed as parameter to Cache.EntryProcessor#process(javax.cache.Cache.MutableEntry).

Since:
5.3
Author:
Galder ZamarreƱo

Constructor Summary
MutableJCacheEntry(AdvancedCache<K,V> cache, K key, V value)
           
 
Method Summary
 boolean exists()
           
 K getKey()
           
 V getValue()
           
 void remove()
           
 void setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableJCacheEntry

public MutableJCacheEntry(AdvancedCache<K,V> cache,
                          K key,
                          V value)
Method Detail

exists

public boolean exists()
Specified by:
exists in interface javax.cache.Cache.MutableEntry<K,V>

remove

public void remove()
Specified by:
remove in interface javax.cache.Cache.MutableEntry<K,V>

setValue

public void setValue(V value)
Specified by:
setValue in interface javax.cache.Cache.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>

-->

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.