public interface AvailabilityStrategy
AvailabilityStrategyContext methods.
The strategy can also queue actions until the current rebalance ends, and execute them on
onRebalanceEnd(AvailabilityStrategyContext).
Method invocations are synchronized, so it's not possible to have concurrent invocations.| Modifier and Type | Method and Description |
|---|---|
void |
onClusterViewChange(AvailabilityStrategyContext context,
List<Address> clusterMembers)
Called when the cluster view changed (e.g.
|
void |
onGracefulLeave(AvailabilityStrategyContext context,
Address leaver)
Called when a node leaves gracefully.
|
void |
onJoin(AvailabilityStrategyContext context,
Address joiner)
Called when a node joins.
|
void |
onManualAvailabilityChange(AvailabilityStrategyContext context,
AvailabilityMode newAvailabilityMode)
Called when the administrator manually changes the availability status.
|
void |
onPartitionMerge(AvailabilityStrategyContext context,
Collection<CacheStatusResponse> statusResponses)
Called when two or more partitions merge, to compute the stable and current cache topologies for the merged
cluster.
|
void |
onRebalanceEnd(AvailabilityStrategyContext context)
Called when a rebalance ends.
|
void onJoin(AvailabilityStrategyContext context, Address joiner)
void onGracefulLeave(AvailabilityStrategyContext context, Address leaver)
void onClusterViewChange(AvailabilityStrategyContext context, List<Address> clusterMembers)
void onPartitionMerge(AvailabilityStrategyContext context, Collection<CacheStatusResponse> statusResponses)
void onRebalanceEnd(AvailabilityStrategyContext context)
void onManualAvailabilityChange(AvailabilityStrategyContext context, AvailabilityMode newAvailabilityMode)
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.