Add a stop hook to be called when the application stops.
Add a stop hook to be called when the application stops.
The stop hook should redeem the returned future when it is finished shutting down. It is acceptable to stop immediately and return a successful future.
Add a stop hook to be called when the application stops.
Add a stop hook to be called when the application stops.
The stop hook should redeem the returned future when it is finished shutting down. It is acceptable to stop immediately and return a successful future.
the Java version for this Application Lifecycle.
Call to shutdown the application.
Call to shutdown the application.
A future that will be redeemed once all hooks have executed.
Default implementation of the application lifecycle.