public class PartitionReplicationEvent extends EventObject
MigrationAwareService
when partitions changes happen.source
Constructor and Description |
---|
PartitionReplicationEvent(int partitionId,
int replicaIndex)
Creates a PartitionReplicationEvent
|
Modifier and Type | Method and Description |
---|---|
int |
getPartitionId()
The id of the partition.
|
int |
getReplicaIndex()
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 © 2014 Hazelcast, Inc.. All Rights Reserved.