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 |
---|---|
void |
access() |
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() |
long |
getLastAccessTime() |
int |
getLatestUpdateHash() |
long |
getTtlMillis() |
long |
getUpdateTime() |
V |
getValue() |
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) |
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 V getValue()
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 void access()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.