Class EntryProcessorEntry<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry<K,V>
-
- All Implemented Interfaces:
Cache.Entry<K,V>,MutableEntry<K,V>
public final class EntryProcessorEntry<K,V> extends Object implements MutableEntry<K,V>
An entry that is consumed by anEntryProcessor. The updates to the entry are replayed on the cache when the processor completes.
-
-
Constructor Summary
Constructors Constructor Description EntryProcessorEntry(K key, @Nullable V value, Optional<CacheLoader<K,V>> cacheLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()ActiongetAction()Returns the dominant action performed by the processor on the entry.KgetKey()@Nullable VgetValue()voidremove()voidsetValue(V value)StringtoString()<T> Tunwrap(Class<T> clazz)
-
-
-
Method Detail
-
exists
public boolean exists()
- Specified by:
existsin interfaceMutableEntry<K,V>
-
getKey
public K getKey()
- Specified by:
getKeyin interfaceCache.Entry<K,V>
-
getValue
public @Nullable V getValue()
- Specified by:
getValuein interfaceCache.Entry<K,V>- Specified by:
getValuein interfaceMutableEntry<K,V>
-
remove
public void remove()
- Specified by:
removein interfaceMutableEntry<K,V>
-
setValue
public void setValue(V value)
- Specified by:
setValuein interfaceMutableEntry<K,V>
-
getAction
public Action getAction()
Returns the dominant action performed by the processor on the entry.
-
unwrap
public <T> T unwrap(Class<T> clazz)
- Specified by:
unwrapin interfaceCache.Entry<K,V>
-
-