public interface WanEventQueueMigrationListener
None of the methods of this interface is expected to block or fail.
PartitionMigrationEvent,
MigrationAwareService| Modifier and Type | Method and Description |
|---|---|
void |
onMigrationCommit(int partitionId,
int currentReplicaIndex,
int newReplicaIndex)
Indicates that migration is committing for a given partition
|
void |
onMigrationRollback(int partitionId,
int currentReplicaIndex,
int newReplicaIndex)
Indicates that migration is rolling back for a given partition
|
void |
onMigrationStart(int partitionId,
int currentReplicaIndex,
int newReplicaIndex)
Indicates that migration started for a given partition
|
void |
onWanQueueClearedDuringMigration(int partitionId,
int currentReplicaIndex,
int clearedQueueDepth)
Indicates that a partition's WAN event queue is cleared during
migration
|
void onMigrationStart(int partitionId,
int currentReplicaIndex,
int newReplicaIndex)
partitionId - the partition being migratedcurrentReplicaIndex - the current replica index of the partitionnewReplicaIndex - the new replica index if the partitionvoid onMigrationCommit(int partitionId,
int currentReplicaIndex,
int newReplicaIndex)
partitionId - the partition being migratedcurrentReplicaIndex - the current replica index of the partitionnewReplicaIndex - the new replica index if the partitionvoid onMigrationRollback(int partitionId,
int currentReplicaIndex,
int newReplicaIndex)
partitionId - the partition being migratedcurrentReplicaIndex - the current replica index of the partitionnewReplicaIndex - the new replica index if the partitionvoid onWanQueueClearedDuringMigration(int partitionId,
int currentReplicaIndex,
int clearedQueueDepth)
partitionId - the partition being migratedcurrentReplicaIndex - the current replica index of the partitionclearedQueueDepth - the depth of the migrated WAN queueCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.