Package io.camunda.zeebe.broker
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 TypeMethodDescriptionvoidonBecameRaftFollower(int partitionId, long term) Is called by theZeebePartitionon starting to become partition follower.voidonBecameRaftLeader(int partitionId, long term) Is called by theZeebePartitionon starting to become partition leader.
-
Method Details
-
onBecameRaftFollower
void onBecameRaftFollower(int partitionId, long term) Is called by theZeebePartitionon 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 idterm- the current term
-
onBecameRaftLeader
void onBecameRaftLeader(int partitionId, long term) Is called by theZeebePartitionon 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 idterm- the current term
-