Package de.galan.commons.util
Class JvmUtil.TerminateBuilder
- java.lang.Object
-
- de.galan.commons.util.JvmUtil.TerminateBuilder
-
-
Constructor Summary
Constructors Constructor Description TerminateBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetMessage()voidin(String time)Stops the JVM in the specified timeJvmUtil.TerminateBuildermessage(String message)Adds an optional user-defined message to the termination log.voidnow()Stops the JVM immediatelyJvmUtil.TerminateBuilderreturnCode(int returnCode)Sets the exit value, default is 0 (zero).protected voidshutdown(String time)protected voidshutdownFinal(String time)JvmUtil.TerminateBuilderthreaded(boolean threaded)Starts the termination in a separate thread or blocking, default is true.
-
-
-
Method Detail
-
returnCode
public JvmUtil.TerminateBuilder returnCode(int returnCode)
Sets the exit value, default is 0 (zero).
-
threaded
public JvmUtil.TerminateBuilder threaded(boolean threaded)
Starts the termination in a separate thread or blocking, default is true.
-
message
public JvmUtil.TerminateBuilder message(String message)
Adds an optional user-defined message to the termination log.
-
in
public void in(String time)
Stops the JVM in the specified time
-
now
public void now()
Stops the JVM immediately
-
shutdown
protected void shutdown(String time)
-
getMessage
protected String getMessage()
-
shutdownFinal
protected void shutdownFinal(String time)
-
-