K - key typeV - value typepublic class ReplicatedRecord<K,V> extends Object implements IdentifiedDataSerializable
| Constructor and Description |
|---|
ReplicatedRecord() |
ReplicatedRecord(K key,
V value,
VectorClockTimestamp vectorClockTimestamp,
int hash,
long ttlMillis) |
| Modifier and Type | Method and Description |
|---|---|
VectorClockTimestamp |
applyAndIncrementVectorClock(VectorClockTimestamp otherVectorClockTimestamp,
Member member) |
VectorClockTimestamp |
applyVectorClock(VectorClockTimestamp otherVectorClockTimestamp) |
boolean |
equals(Object o) |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
long |
getHits() |
int |
getId()
Returns type identifier for this class.
|
K |
getKey() |
K |
getKeyInternal() |
long |
getLastAccessTime() |
int |
getLatestUpdateHash() |
long |
getTtlMillis() |
long |
getUpdateTime() |
V |
getValue() |
V |
getValueInternal() |
VectorClockTimestamp |
getVectorClockTimestamp() |
int |
hashCode() |
VectorClockTimestamp |
incrementVectorClock(Member member) |
boolean |
isTombstone() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
V |
setValue(V value,
int hash,
long ttlMillis) |
V |
setValueInternal(V value,
int hash,
long ttlMillis) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public ReplicatedRecord()
public ReplicatedRecord(K key, V value, VectorClockTimestamp vectorClockTimestamp, int hash, long ttlMillis)
public K getKey()
public K getKeyInternal()
public V getValue()
public V getValueInternal()
public boolean isTombstone()
public VectorClockTimestamp getVectorClockTimestamp()
public VectorClockTimestamp applyAndIncrementVectorClock(VectorClockTimestamp otherVectorClockTimestamp, Member member)
public VectorClockTimestamp applyVectorClock(VectorClockTimestamp otherVectorClockTimestamp)
public VectorClockTimestamp incrementVectorClock(Member member)
public long getTtlMillis()
public long getUpdateTime()
public int getLatestUpdateHash()
public long getHits()
public long getLastAccessTime()
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.