Interface RaftNodeLifecycleAware

    • Method Detail

      • onRaftNodeStart

        default void onRaftNodeStart()
        Called by RaftNode during startup.

        If an exception is thrown, RaftNode stops its start procedure and immediately terminates itself.

      • onRaftNodeTerminate

        default void onRaftNodeTerminate()
        Called by RaftNode during termination.

        The component will not receive any API call after this call.

        Exceptions thrown by implementations of this method are handled and logged by RaftNode.