Package io.microraft.report
Interface RaftNodeReportListener
- All Superinterfaces:
Consumer<RaftNodeReport>
Used for informing external systems about events related to the execution of
the Raft consensus algorithm.
Called when term, role, status, known leader, or member list of the Raft node changes.
A RaftNodeReportListener
implementation can implement
RaftNodeLifecycleAware
to perform initialization and clean up work
during RaftNode
startup and termination. RaftNode
calls
RaftNodeLifecycleAware.onRaftNodeStart()
before calling any other
method on RaftNodeReportListener
, and finally calls
RaftNodeLifecycleAware.onRaftNodeTerminate()
on termination.
- See Also:
-
Method Summary