Interface Node.Shutdown
- Enclosing interface:
Node
public static interface Node.Shutdown
Represents a pending node shut-down process.
-
Method Summary
-
Method Details
-
preStop
void preStop()Performs any pre-start operations. -
stop
void stop()Stops the service. This gracefully shuts down any worker threads, closes sockets, and takes the node offline. Once this method returns, the service is completely offline.- Throws:
IllegalStateException
- if the node has already been stopped
-
postStop
void postStop()Performs any post-start operations.NodeLifecycle.nodePostStop(Node)
-