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 PartitionEventpublic int getLostBackupCount()
public Address getEventSource()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.