@PrivateApi public class InternalPartitionLostEvent extends Object implements DataSerializable
Constructor and Description |
---|
InternalPartitionLostEvent() |
InternalPartitionLostEvent(int partitionId,
int lostReplicaIndex,
Address eventSource) |
Modifier and Type | Method and Description |
---|---|
Address |
getEventSource()
The address of the node that detects the partition lost
|
int |
getLostReplicaIndex()
0-based replica index that is lost for the partition
For instance, 0 means only the owner of the partition is lost, 1 means both the owner and first backup are lost
|
int |
getPartitionId()
The partition id that is lost
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public InternalPartitionLostEvent()
public InternalPartitionLostEvent(int partitionId, int lostReplicaIndex, Address eventSource)
public int getPartitionId()
public int getLostReplicaIndex()
public Address getEventSource()
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
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.