| Constructor and Description |
|---|
TerminateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMessage() |
void |
in(String time)
Stops the JVM in the specified time
|
JvmUtil.TerminateBuilder |
message(String message)
Adds an optional user-defined message to the termination log.
|
void |
now()
Stops the JVM immediately
|
JvmUtil.TerminateBuilder |
returnCode(int returnCode)
Sets the exit value, default is 0 (zero).
|
protected void |
shutdown(String time) |
protected void |
shutdownFinal(String time) |
JvmUtil.TerminateBuilder |
threaded(boolean threaded)
Starts the termination in a separate thread or blocking, default is true.
|
public JvmUtil.TerminateBuilder returnCode(int returnCode)
public JvmUtil.TerminateBuilder threaded(boolean threaded)
public JvmUtil.TerminateBuilder message(String message)
public void in(String time)
public void now()
protected void shutdown(String time)
protected String getMessage()
protected void shutdownFinal(String time)
Copyright © 2017. All rights reserved.