public class PartitionEventManager extends Object
Constructor and Description |
---|
PartitionEventManager(Node node) |
Modifier and Type | Method and Description |
---|---|
String |
addLocalPartitionLostListener(PartitionLostListener listener) |
String |
addMigrationListener(MigrationListener listener) |
String |
addPartitionLostListener(PartitionLostListener listener) |
void |
onPartitionLost(IPartitionLostEvent event) |
boolean |
removeMigrationListener(String registrationId) |
boolean |
removePartitionLostListener(String registrationId) |
void |
sendPartitionLostEvent(int partitionId,
int lostReplicaIndex) |
public PartitionEventManager(Node node)
public String addMigrationListener(MigrationListener listener)
public boolean removeMigrationListener(String registrationId)
public String addPartitionLostListener(PartitionLostListener listener)
public String addLocalPartitionLostListener(PartitionLostListener listener)
public boolean removePartitionLostListener(String registrationId)
public void onPartitionLost(IPartitionLostEvent event)
public void sendPartitionLostEvent(int partitionId, int lostReplicaIndex)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.