Package javax.cache
Interface Cache.MutableEntry<K,V>
-
- Type Parameters:
K-V-
- All Superinterfaces:
Cache.Entry<K,V>
public static interface Cache.MutableEntry<K,V> extends Cache.Entry<K,V>
An accessor and mutator to the underlying Cache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()Checks for the existence of the entry in the cachevoidremove()Removes the entry from the CachevoidsetValue(V value)Sets or replaces the value associated with the key Ifexists()is false and setValue is called then a mapping is added to the cache visible once the EntryProcessor completes.-
Methods inherited from interface javax.cache.Cache.Entry
getKey, getValue
-
-
-
-
Method Detail
-
exists
boolean exists()
Checks for the existence of the entry in the cache- Returns:
-
remove
void remove()
Removes the entry from the Cache
-
setValue
void setValue(V value)
Sets or replaces the value associated with the key Ifexists()is false and setValue is called then a mapping is added to the cache visible once the EntryProcessor completes. Moreover a second invocation ofexists()will return true.- Parameters:
value- the value to update the entry with
-
-