Class CacheInvokeEntry<K,V>
- java.lang.Object
-
- org.apache.ignite.cache.CacheInterceptorEntry<K,V>
-
- org.apache.ignite.internal.processors.cache.CacheLazyEntry<K,V>
-
- org.apache.ignite.internal.processors.cache.CacheInvokeEntry<K,V>
-
- All Implemented Interfaces:
javax.cache.Cache.Entry<K,V>,javax.cache.processor.MutableEntry<K,V>
public class CacheInvokeEntry<K,V> extends CacheLazyEntry<K,V> implements javax.cache.processor.MutableEntry<K,V>
Implementation ofMutableEntrypassed to theEntryProcessor.process(MutableEntry, Object...).
-
-
Constructor Summary
Constructors Constructor Description CacheInvokeEntry(KeyCacheObject keyObj, @Nullable CacheObject valObj, GridCacheVersion ver, boolean keepBinary, GridCacheEntryEx entry)Constructor.CacheInvokeEntry(KeyCacheObject keyObj, K key, @Nullable CacheObject valObj, V val, GridCacheVersion ver, boolean keepBinary, GridCacheEntryEx entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridCacheEntryExentry()booleanexists()booleanmodified()VoldVal()voidremove()voidsetValue(V val)StringtoString()<T> Tunwrap(Class<T> cls)-
Methods inherited from class org.apache.ignite.internal.processors.cache.CacheLazyEntry
getKey, getPartitionUpdateCounter, getValue, getValue, keepBinary, key, updateCounter, value
-
-
-
-
Constructor Detail
-
CacheInvokeEntry
public CacheInvokeEntry(KeyCacheObject keyObj, @Nullable @Nullable CacheObject valObj, GridCacheVersion ver, boolean keepBinary, GridCacheEntryEx entry)
Constructor.- Parameters:
keyObj- Key cache object.valObj- Cache object value.ver- Entry version.keepBinary- Keep binary flag.entry- Original entry.
-
CacheInvokeEntry
public CacheInvokeEntry(KeyCacheObject keyObj, @Nullable K key, @Nullable @Nullable CacheObject valObj, @Nullable V val, GridCacheVersion ver, boolean keepBinary, GridCacheEntryEx entry)
- Parameters:
keyObj- Key cache object.key- Key value.valObj- Value cache object.val- Value.ver- Entry version.keepBinary- Keep binary flag.entry- Grid cache entry.
-
-
Method Detail
-
exists
public boolean exists()
-
remove
public void remove()
-
setValue
public void setValue(V val)
-
oldVal
public V oldVal()
- Returns:
- Return origin value, before modification.
-
modified
public boolean modified()
- Returns:
TrueifsetValue(V)orwas called.
-
entry
public GridCacheEntryEx entry()
- Returns:
- Cache entry instance.
-
unwrap
public <T> T unwrap(Class<T> cls)
-
toString
public String toString()
- Overrides:
toStringin classCacheLazyEntry<K,V>
-
-