public interface ISrvAppServerStopper
| Modifier and Type | Method and Description |
|---|---|
int |
getExitCode()
Get the exit code.
|
void |
setExitCode(int exitCode)
Set the exit code.
|
void |
stop()
Stop the server synchronously.
|
void |
stop(boolean sync)
Stop the server.
|
void stop()
This method is the same as calling stop(true).
void stop(boolean sync)
sync - whether the stop call should block until server is stopped
The caller must ensure that this value is false if running from a thread
which must be joined during server stop.int getExitCode()
Returns the exit code that will be used when the server process exits. Reserved exit codes:
void setExitCode(int exitCode)
Sets the exit code that will be used when the server process exits. Once a non-zero exit code is set, subsequent calls with a zero exit code will not overwrite it.
Reserved exit codes:
exitCode - The exit code to set.Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.