|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.replicatedmap.impl.record.ReplicatedRecord<K,V>
K
- key typeV
- value typepublic class ReplicatedRecord<K,V>
A ReplicatedRecord is the actual data holding entity. It also collects statistic metadata.
Constructor Summary | |
---|---|
ReplicatedRecord()
|
|
ReplicatedRecord(K key,
V value,
VectorClockTimestamp vectorClockTimestamp,
int hash,
long ttlMillis)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReplicatedRecord()
public ReplicatedRecord(K key, V value, VectorClockTimestamp vectorClockTimestamp, int hash, long ttlMillis)
Method Detail |
---|
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 V setValue(V value, int hash, long ttlMillis)
public V setValueInternal(V value, int hash, long ttlMillis)
public long getUpdateTime()
public int getLatestUpdateHash()
public long getHits()
public long getLastAccessTime()
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
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |