public class GridCachePlainVersionedEntry<K,V> extends Object implements GridCacheVersionedEntryEx<K,V>
Modifier and Type | Field and Description |
---|---|
protected K |
key
Key.
|
protected V |
val
Value.
|
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
byte |
dataCenterId()
Gets ID of initiator data center.
|
long |
expireTime()
Gets entry's expire time.
|
boolean |
isStartVersion() |
K |
key()
Gets entry's key.
|
long |
order()
Gets entry's order in initiator data center.
|
int |
topologyVersion()
Gets entry's topology version in initiator data center.
|
String |
toString() |
long |
ttl()
Gets entry's TTL.
|
V |
value()
Gets entry's value.
|
GridCacheVersion |
version() |
@GridToStringInclude protected K key
@GridToStringInclude protected V val
public GridCachePlainVersionedEntry(K key, @Nullable V val, long ttl, long expireTime, GridCacheVersion ver)
key
- Key.val
- Value.ttl
- TTL.expireTime
- Expire time.ver
- Version.public GridCachePlainVersionedEntry(K key, V val, long ttl, long expireTime, GridCacheVersion ver, boolean isStartVer)
key
- Key.val
- Value.ttl
- TTL.expireTime
- Expire time.ver
- Version.isStartVer
- Start version flag.public K key()
key
in interface GridCacheVersionedEntry<K,V>
public V value()
value
in interface GridCacheVersionedEntry<K,V>
public long ttl()
ttl
in interface GridCacheVersionedEntry<K,V>
public long expireTime()
expireTime
in interface GridCacheVersionedEntry<K,V>
public byte dataCenterId()
dataCenterId
in interface GridCacheVersionedEntry<K,V>
public int topologyVersion()
topologyVersion
in interface GridCacheVersionedEntry<K,V>
public long order()
order
in interface GridCacheVersionedEntry<K,V>
public GridCacheVersion version()
version
in interface GridCacheVersionable
public boolean isStartVersion()
isStartVersion
in interface GridCacheVersionedEntryEx<K,V>
True
if entry is new.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017