public class CacheLazyEntry<K,V> extends CacheInterceptorEntry<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheContext |
cctx
Cache context.
|
protected K |
key
Key.
|
protected KeyCacheObject |
keyObj
Key cache object.
|
protected V |
val
Value.
|
protected CacheObject |
valObj
Cache object value.
|
| Constructor and Description |
|---|
CacheLazyEntry(GridCacheContext cctx,
KeyCacheObject keyObj,
CacheObject valObj,
boolean keepBinary) |
CacheLazyEntry(GridCacheContext ctx,
KeyCacheObject keyObj,
K key,
CacheObject valObj,
V val,
boolean keepBinary) |
CacheLazyEntry(GridCacheContext ctx,
KeyCacheObject keyObj,
K key,
CacheObject valObj,
V val,
boolean keepBinary,
Long updateCntr) |
CacheLazyEntry(GridCacheContext cctx,
KeyCacheObject keyObj,
V val,
boolean keepBinary) |
| Modifier and Type | Method and Description |
|---|---|
K |
getKey() |
long |
getPartitionUpdateCounter()
Each cache update increases partition counter.
|
V |
getValue() |
V |
getValue(boolean keepBinary)
Returns the value stored in the cache when this entry was created.
|
boolean |
keepBinary() |
K |
key() |
String |
toString() |
<T> T |
unwrap(Class<T> cls) |
void |
updateCounter(long updateCntr)
Sets update counter.
|
V |
value() |
protected GridCacheContext cctx
protected KeyCacheObject keyObj
protected CacheObject valObj
@GridToStringInclude(sensitive=true) protected K key
@GridToStringInclude(sensitive=true) protected V val
public CacheLazyEntry(GridCacheContext cctx, KeyCacheObject keyObj, CacheObject valObj, boolean keepBinary)
cctx - Cache context.keyObj - Key cache object.valObj - Cache object value.keepBinary - Keep binary flag.public CacheLazyEntry(GridCacheContext cctx, KeyCacheObject keyObj, V val, boolean keepBinary)
keyObj - Key cache object.val - Value.keepBinary - Keep binary flag.cctx - Cache context.public CacheLazyEntry(GridCacheContext ctx, KeyCacheObject keyObj, K key, CacheObject valObj, V val, boolean keepBinary, Long updateCntr)
ctx - Cache context.keyObj - Key cache object.key - Key value.valObj - Cache objectkeepBinary - Keep binary flag.updateCntr - Partition update counter.val - Cache value.public CacheLazyEntry(GridCacheContext ctx, KeyCacheObject keyObj, K key, CacheObject valObj, V val, boolean keepBinary)
ctx - Cache context.keyObj - Key cache object.key - Key value.valObj - Cache objectkeepBinary - Keep binary flag.val - Cache value.public K getKey()
public V getValue()
public V getValue(boolean keepBinary)
keepBinary - Flag to keep binary if needed.public V value()
public K key()
public boolean keepBinary()
public long getPartitionUpdateCounter()
CacheInterceptor.onAfterPut(Cache.Entry) and
CacheInterceptor.onAfterRemove(Cache.Entry) methods. For entries got by other methods will return
0.getPartitionUpdateCounter in class CacheInterceptorEntry<K,V>public void updateCounter(long updateCntr)
updateCntr - Update counter.public <T> T unwrap(Class<T> cls)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019