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 TypeMethodDescriptiondefault voidnodePostStart(Node node) Called after theNodeis up and accepting connections.default voidnodePostStop(Node node) Called just after theNodehas stopped accepting connections.default voidnodePreStart(Node node) Called before theNodeis up and accepting connectionsdefault voidnodePreStop(Node node) Called just before theNodewill stop accepting connections and shut down
-
Method Details
-
nodePreStart
Called before theNodeis up and accepting connections- Parameters:
node-
-
nodePostStart
Called after theNodeis up and accepting connections.- Parameters:
node-
-
nodePreStop
Called just before theNodewill stop accepting connections and shut down- Parameters:
node-
-
nodePostStop
Called just after theNodehas stopped accepting connections.- Parameters:
node-
-