Interface PartitionRaftListener

All Known Implementing Classes:
BrokerHealthCheckService

public interface PartitionRaftListener
Can be implemented and used to react on partition role changes, like on Leader on Actor should be started and on Follower one should be removed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBecameRaftFollower(int partitionId, long term)
    Is called by the ZeebePartition on starting to become partition follower.
    void
    onBecameRaftLeader(int partitionId, long term)
    Is called by the ZeebePartition on starting to become partition leader.
  • Method Details

    • onBecameRaftFollower

      void onBecameRaftFollower(int partitionId, long term)
      Is called by the ZeebePartition on starting to become partition follower. This is called before the installation starts, but after the node became already follower on raft level.
      Parameters:
      partitionId - the corresponding partition id
      term - the current term
    • onBecameRaftLeader

      void onBecameRaftLeader(int partitionId, long term)
      Is called by the ZeebePartition on starting to become partition leader. This is called before the installation starts, but after the node became already leader on raft level.
      Parameters:
      partitionId - the corresponding partition id
      term - the current term