Package io.microraft.lifecycle
Interface RaftNodeLifecycleAware
-
public interface RaftNodeLifecycleAwareUsed byRaftNodeto notify its components for its lifecycle-related changes, such as startup and termination. These components areRaftNodeExecutor,StateMachine,RaftModelFactory,Transport,RaftStore, andRaftNodeReportListener.RaftNodedoes not manage the lifecycle of the components provided to it during construction. It only notifies the components that implement this interface.RaftNodecalls the lifecycle-aware components in random order.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonRaftNodeStart()Called byRaftNodeduring startup.default voidonRaftNodeTerminate()Called byRaftNodeduring termination.
-