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 IDreplicaIndex
- the replica indexpublic int getPartitionId()
public int getReplicaIndex()
public String toString()
toString
in class EventObject
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.