public class PartitionReplicationEvent extends EventObject
MigrationAwareService
when partition changes happen.source
Constructor and Description |
---|
PartitionReplicationEvent(int partitionId,
int replicaIndex)
Creates a PartitionReplicationEvent
|
Modifier and Type | Method and Description |
---|---|
int |
getPartitionId()
Gets the id of the partition.
|
int |
getReplicaIndex()
Gets the replica index.
|
String |
toString() |
getSource
public PartitionReplicationEvent(int partitionId, int replicaIndex)
partitionId
- the partition id.replicaIndex
- the replica index.public int getPartitionId()
public int getReplicaIndex()
public String toString()
toString
in class EventObject
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.