com.hazelcast.replicatedmap.impl.record
Class VectorClockTimestamp

java.lang.Object
  extended by com.hazelcast.replicatedmap.impl.record.VectorClockTimestamp
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable

public final class VectorClockTimestamp
extends Object
implements IdentifiedDataSerializable

A vector clock implementation based on hashcodes of the Hazelcast members UUID to solve conflicts on replication updates


Constructor Summary
VectorClockTimestamp()
           
 
Method Summary
 boolean equals(Object o)
           
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 int getId()
          Returns type identifier for this class.
 int hashCode()
           
 void readData(ObjectDataInput dataInput)
          Reads fields from the input stream
 String toString()
           
 void writeData(ObjectDataOutput dataOutput)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VectorClockTimestamp

public VectorClockTimestamp()
Method Detail

writeData

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

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

readData

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

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

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

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

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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