com.hazelcast.spi
Class PartitionReplicationEvent
java.lang.Object
java.util.EventObject
com.hazelcast.spi.PartitionReplicationEvent
- All Implemented Interfaces:
- Serializable
public class PartitionReplicationEvent
- extends EventObject
An event send to MigrationAwareService
when partitions changes happen.
- See Also:
- Serialized Form
PartitionReplicationEvent
public PartitionReplicationEvent(int partitionId,
int replicaIndex)
- Creates a PartitionReplicationEvent
- Parameters:
partitionId
- the partition id.replicaIndex
- the replica index.
getPartitionId
public int getPartitionId()
- The id of the partition.
- Returns:
- the id of the partition
getReplicaIndex
public int getReplicaIndex()
- The replica index. 0 is priimary, the rest is backup.
- Returns:
- the replica index
toString
public String toString()
- Overrides:
toString
in class EventObject
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.