Class GridCacheLazyPlainVersionedEntry<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.version.GridCachePlainVersionedEntry<K,V>
-
- org.apache.ignite.internal.processors.cache.version.GridCacheLazyPlainVersionedEntry<K,V>
-
- All Implemented Interfaces:
GridCacheVersionable,GridCacheVersionedEntry<K,V>,GridCacheVersionedEntryEx<K,V>
public class GridCacheLazyPlainVersionedEntry<K,V> extends GridCachePlainVersionedEntry<K,V>
Lazy plain versioned entry.
-
-
Field Summary
Fields Modifier and Type Field Description protected GridCacheContextcctxCache context.-
Fields inherited from class org.apache.ignite.internal.processors.cache.version.GridCachePlainVersionedEntry
key, val
-
-
Constructor Summary
Constructors Constructor Description GridCacheLazyPlainVersionedEntry(GridCacheContext cctx, KeyCacheObject keyObj, CacheObject valObj, long ttl, long expireTime, GridCacheVersion ver, boolean keepBinary)GridCacheLazyPlainVersionedEntry(GridCacheContext cctx, KeyCacheObject keyObj, CacheObject valObj, long ttl, long expireTime, GridCacheVersion ver, boolean isStartVer, boolean keepBinary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Kkey()Gets entry's key.StringtoString()Vvalue(boolean keepBinary)Returns the value stored in the cache when this entry was created.Vvalue(CacheObjectValueContext ctx)Gets entry's value.-
Methods inherited from class org.apache.ignite.internal.processors.cache.version.GridCachePlainVersionedEntry
dataCenterId, expireTime, isStartVersion, order, topologyVersion, ttl, version
-
-
-
-
Field Detail
-
cctx
protected GridCacheContext cctx
Cache context.
-
-
Constructor Detail
-
GridCacheLazyPlainVersionedEntry
public GridCacheLazyPlainVersionedEntry(GridCacheContext cctx, KeyCacheObject keyObj, CacheObject valObj, long ttl, long expireTime, GridCacheVersion ver, boolean isStartVer, boolean keepBinary)
- Parameters:
cctx- Context.keyObj- Key.valObj- Value.ttl- TTL.expireTime- Expire time.ver- Version.isStartVer- Start version flag.keepBinary- Keep binary flag.
-
GridCacheLazyPlainVersionedEntry
public GridCacheLazyPlainVersionedEntry(GridCacheContext cctx, KeyCacheObject keyObj, CacheObject valObj, long ttl, long expireTime, GridCacheVersion ver, boolean keepBinary)
-
-
Method Detail
-
key
public K key()
Gets entry's key.- Specified by:
keyin interfaceGridCacheVersionedEntry<K,V>- Overrides:
keyin classGridCachePlainVersionedEntry<K,V>- Returns:
- Entry's key.
-
value
public V value(CacheObjectValueContext ctx)
Gets entry's value.- Specified by:
valuein interfaceGridCacheVersionedEntry<K,V>- Overrides:
valuein classGridCachePlainVersionedEntry<K,V>- Parameters:
ctx- Object value context.- Returns:
- Entry's value.
-
value
public V value(boolean keepBinary)
Returns the value stored in the cache when this entry was created.- Parameters:
keepBinary- Flag to keep binary if needed.- Returns:
- the value corresponding to this entry
-
toString
public String toString()
- Overrides:
toStringin classGridCachePlainVersionedEntry<K,V>
-
-