K
- the type of keyV
- the type of valuepublic static interface Cache.MutableEntry<K,V> extends Cache.Entry<K,V>
Cache
Cache.Entry
.Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Checks for the existence of the entry in the cache
|
void |
remove()
Removes the entry from the Cache
|
void |
setValue(V value)
Sets or replaces the value associated with the key
If
exists() is false and setValue is called
then a mapping is added to the cache visible once the EntryProcessor
completes. |
getKey, getValue, unwrap
boolean exists()
void remove()
void setValue(V value)
exists()
is false and setValue is called
then a mapping is added to the cache visible once the EntryProcessor
completes. Moreover a second invocation of exists()
will return true.
value
- the value to update the entry withClassCastException
- if the implementation supports and is
configured to perform runtime-type-checking,
and value type is incompatible with that
which has been configured for the
Cache
Copyright © 2013. All Rights Reserved.