public class PartitionMigrationEvent extends EventObject
EventObject
for a partition migration. Can be used by SPI services to get a callback
to listen to partition migration. See MigrationAwareService
for more info.source
Constructor and Description |
---|
PartitionMigrationEvent(MigrationEndpoint migrationEndpoint,
int partitionId,
int currentReplicaIndex,
int newReplicaIndex) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCurrentReplicaIndex()
Gets the index of the partition replica that current member owns currently, before migration starts.
|
MigrationEndpoint |
getMigrationEndpoint()
Gets the partition migration endpoint.
|
int |
getNewReplicaIndex()
Gets the index of the partition replica that current member will own after migration is committed.
|
int |
getPartitionId()
Gets the partition ID.
|
int |
hashCode() |
String |
toString() |
getSource
public PartitionMigrationEvent(MigrationEndpoint migrationEndpoint, int partitionId, int currentReplicaIndex, int newReplicaIndex)
public MigrationEndpoint getMigrationEndpoint()
public int getPartitionId()
public int getCurrentReplicaIndex()
public int getNewReplicaIndex()
public String toString()
toString
in class EventObject
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.