Class EntryProcessorEntry<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.jcache.processor.EntryProcessorEntry<K,V>
-
- All Implemented Interfaces:
javax.cache.Cache.Entry<K,V>
,javax.cache.processor.MutableEntry<K,V>
public final class EntryProcessorEntry<K,V> extends java.lang.Object implements javax.cache.processor.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, java.util.Optional<javax.cache.integration.CacheLoader<K,V>> cacheLoader)
-
-
-
Method Detail
-
exists
public boolean exists()
-
getValue
public @Nullable V getValue()
-
remove
public void remove()
-
setValue
public void setValue(V value)
-
getAction
public Action getAction()
- Returns:
- the dominant action performed by the processor on the entry.
-
unwrap
public <T> T unwrap(java.lang.Class<T> clazz)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-