Package io.microraft.lifecycle
Interface RaftNodeLifecycleAware
public interface RaftNodeLifecycleAware
Used by
RaftNode to notify its components for its lifecycle-related
changes, such as startup and termination. These components are
RaftNodeExecutor, StateMachine, RaftModelFactory,
Transport, RaftStore, and RaftNodeReportListener.
RaftNode does not manage the lifecycle of the components provided to
it during construction. It only notifies the components that implement this
interface.
RaftNode calls the lifecycle-aware components in random order.
-
Method Details
-
onRaftNodeStart
default void onRaftNodeStart() -
onRaftNodeTerminate
default void onRaftNodeTerminate()
-