com.hazelcast.replicatedmap.impl.messages
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
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.