Interface NodeLifecycle

All Known Implementing Classes:
MasterNodeLifecycle, SimpleContext

public interface NodeLifecycle
Informs the underlying application, contained in the Node, of the various livecycle events.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called after the Node is up and accepting connections.
    default void
    Called just after the Node has stopped accepting connections.
    default void
    Called before the Node is up and accepting connections
    default void
    Called just before the Node will stop accepting connections and shut down
  • Method Details

    • nodePreStart

      default void nodePreStart(Node node)
      Called before the Node is up and accepting connections
      Parameters:
      node -
    • nodePostStart

      default void nodePostStart(Node node)
      Called after the Node is up and accepting connections.
      Parameters:
      node -
    • nodePreStop

      default void nodePreStop(Node node)
      Called just before the Node will stop accepting connections and shut down
      Parameters:
      node -
    • nodePostStop

      default void nodePostStop(Node node)
      Called just after the Node has stopped accepting connections.
      Parameters:
      node -