Interface ClusterMembershipChangeExecutor
- All Known Implementing Classes:
NoopClusterMembershipChangeExecutor
public interface ClusterMembershipChangeExecutor
-
Method Summary
Modifier and TypeMethodDescriptionThe implementation of this method can react to a new node joining the cluster.removeBroker(MemberId memberId) The implementation of this method can react to a node leaving the cluster.
-
Method Details
-
addBroker
The implementation of this method can react to a new node joining the cluster. For example, this can update BrokerInfo so that the gateway can see the new clusterSize.- Parameters:
memberId- id of the broker that is newly added to the cluster- Returns:
- future when the operation is completed.
-
removeBroker
The implementation of this method can react to a node leaving the cluster.- Parameters:
memberId- id of the member that is leaving the cluster- Returns:
- future when the operation is completed
-