Class GridCachePlainVersionedEntry<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.version.GridCachePlainVersionedEntry<K,V>
-
- All Implemented Interfaces:
GridCacheVersionable,GridCacheVersionedEntry<K,V>,GridCacheVersionedEntryEx<K,V>
- Direct Known Subclasses:
GridCacheLazyPlainVersionedEntry
public class GridCachePlainVersionedEntry<K,V> extends Object implements GridCacheVersionedEntryEx<K,V>
Plain versioned entry.
-
-
Constructor Summary
Constructors Constructor Description GridCachePlainVersionedEntry(K key, V val, long ttl, long expireTime, GridCacheVersion ver)GridCachePlainVersionedEntry(K key, V val, long ttl, long expireTime, GridCacheVersion ver, boolean isStartVer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytedataCenterId()Gets ID of initiator data center.longexpireTime()Gets entry's expire time.booleanisStartVersion()Kkey()Gets entry's key.longorder()Gets entry's order in initiator data center.inttopologyVersion()Gets entry's topology version in initiator data center.StringtoString()longttl()Gets entry's TTL.Vvalue(CacheObjectValueContext ctx)Gets entry's value.GridCacheVersionversion()
-
-
-
Field Detail
-
key
@GridToStringInclude protected K key
Key.
-
val
@GridToStringInclude protected V val
Value.
-
-
Constructor Detail
-
GridCachePlainVersionedEntry
public GridCachePlainVersionedEntry(K key, @Nullable V val, long ttl, long expireTime, GridCacheVersion ver)
- Parameters:
key- Key.val- Value.ttl- TTL.expireTime- Expire time.ver- Version.
-
GridCachePlainVersionedEntry
public GridCachePlainVersionedEntry(K key, V val, long ttl, long expireTime, GridCacheVersion ver, boolean isStartVer)
- Parameters:
key- Key.val- Value.ttl- TTL.expireTime- Expire time.ver- Version.isStartVer- Start version flag.
-
-
Method Detail
-
key
public K key()
Gets entry's key.- Specified by:
keyin interfaceGridCacheVersionedEntry<K,V>- Returns:
- Entry's key.
-
value
public V value(CacheObjectValueContext ctx)
Gets entry's value.- Specified by:
valuein interfaceGridCacheVersionedEntry<K,V>- Parameters:
ctx- Object value context.- Returns:
- Entry's value.
-
ttl
public long ttl()
Gets entry's TTL.- Specified by:
ttlin interfaceGridCacheVersionedEntry<K,V>- Returns:
- Entry's TTL.
-
expireTime
public long expireTime()
Gets entry's expire time.- Specified by:
expireTimein interfaceGridCacheVersionedEntry<K,V>- Returns:
- Entry's expire time.
-
dataCenterId
public byte dataCenterId()
Gets ID of initiator data center.- Specified by:
dataCenterIdin interfaceGridCacheVersionedEntry<K,V>- Returns:
- ID of initiator data center.
-
topologyVersion
public int topologyVersion()
Gets entry's topology version in initiator data center.- Specified by:
topologyVersionin interfaceGridCacheVersionedEntry<K,V>- Returns:
- Entry's topology version in initiator data center.
-
order
public long order()
Gets entry's order in initiator data center.- Specified by:
orderin interfaceGridCacheVersionedEntry<K,V>- Returns:
- Entry's order in initiator data center
-
version
public GridCacheVersion version()
- Specified by:
versionin interfaceGridCacheVersionable- Returns:
- Version.
-
isStartVersion
public boolean isStartVersion()
- Specified by:
isStartVersionin interfaceGridCacheVersionedEntryEx<K,V>- Returns:
Trueif entry is new.
-
-