Believe or not, this is the default grace period.
Run each shutdown hook and collect its result.
Add callback to run when shutdown is initiated prior to process exit. See ShutdownHook for description of parameters.
Register a final shutdown hook that calls
then initiates shutdown. This allows you to exit with a specific
exit code and process all async shutdown hooks, something not
possible when calling process.exit directly.
For the fastest safe exit, set the automation client configuration ws.termination.graceful to false before calling this.
Set the absolute longest number of milliseconds shutdown should take.
Return graceful termination period in milliseconds.
Return whether graceful termination is enabled.
Generated using TypeDoc