K - key typeV - value typepublic class ReplicationMessage<K,V> extends Object implements IdentifiedDataSerializable
| Constructor and Description |
|---|
ReplicationMessage() |
ReplicationMessage(String name,
K key,
V v,
VectorClockTimestamp timestamp,
Member origin,
int hash,
long ttlMillis) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
K |
getKey() |
String |
getName() |
Member |
getOrigin() |
long |
getTtlMillis() |
int |
getUpdateHash() |
V |
getValue() |
VectorClockTimestamp |
getVectorClockTimestamp() |
boolean |
isRemove() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public ReplicationMessage()
public ReplicationMessage(String name, K key, V v, VectorClockTimestamp timestamp, Member origin, int hash, long ttlMillis)
public String getName()
public K getKey()
public V getValue()
public VectorClockTimestamp getVectorClockTimestamp()
public Member getOrigin()
public long getTtlMillis()
public int getUpdateHash()
public boolean isRemove()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.