public class PartitionLostEvent extends Object implements DataSerializable, PartitionEvent
Partition
,
PartitionService
,
PartitionLostListener
Constructor and Description |
---|
PartitionLostEvent() |
PartitionLostEvent(int partitionId,
int lostBackupCount,
Address eventSource) |
Modifier and Type | Method and Description |
---|---|
Address |
getEventSource()
Returns the address of the node that dispatches the event
|
int |
getLostBackupCount()
Returns the number of lost backups for the partition.
|
int |
getPartitionId()
Returns the lost partition id.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public PartitionLostEvent()
public PartitionLostEvent(int partitionId, int lostBackupCount, Address eventSource)
public int getPartitionId()
getPartitionId
in interface PartitionEvent
public int getLostBackupCount()
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.