com.hazelcast.replicatedmap.impl.messages
Class ReplicationMessage<K,V>

java.lang.Object
  extended by com.hazelcast.replicatedmap.impl.messages.ReplicationMessage<K,V>
Type Parameters:
K - key type
V - value type
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable

public class ReplicationMessage<K,V>
extends Object
implements IdentifiedDataSerializable

This replication message is used for sending over a replication event to another node


Constructor Summary
ReplicationMessage()
           
ReplicationMessage(String name, K key, V v, VectorClockTimestamp timestamp, Member origin, int hash, long ttlMillis)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReplicationMessage

public ReplicationMessage()

ReplicationMessage

public ReplicationMessage(String name,
                          K key,
                          V v,
                          VectorClockTimestamp timestamp,
                          Member origin,
                          int hash,
                          long ttlMillis)
Method Detail

getName

public String getName()

getKey

public K getKey()

getValue

public V getValue()

getVectorClockTimestamp

public VectorClockTimestamp getVectorClockTimestamp()

getOrigin

public Member getOrigin()

getTtlMillis

public long getTtlMillis()

getUpdateHash

public int getUpdateHash()

isRemove

public boolean isRemove()

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Specified by:
getFactoryId in interface IdentifiedDataSerializable
Returns:
factory id

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Specified by:
getId in interface IdentifiedDataSerializable
Returns:
type id

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.