Interface ClusterMembershipChangeExecutor

All Known Implementing Classes:
NoopClusterMembershipChangeExecutor

public interface ClusterMembershipChangeExecutor
  • Method Summary

    Modifier and Type
    Method
    Description
    addBroker(MemberId memberId)
    The implementation of this method can react to a new node joining the cluster.
    The implementation of this method can react to a node leaving the cluster.
  • Method Details

    • addBroker

      ActorFuture<Void> addBroker(MemberId memberId)
      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

      ActorFuture<Void> removeBroker(MemberId memberId)
      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