public final class Shutdown
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
static void |
addListener(ShutdownListener listener)
add a listener
|
static void |
exit(int exitStatus)
exit the program
|
static void |
init()
cause the hook to be added.
|
static boolean |
isShutingDown()
are we shutting down ?
|
static boolean |
isSlient()
are we in silent mode ?
|
void |
run()
run the shutdown
|
static void |
setSlient(boolean on)
don't show any information
|
public static void init()
public static void setSlient(boolean on)
on
- turn it on/off@CheckReturnValue public static boolean isSlient()
@CheckReturnValue public static boolean isShutingDown()
public static void addListener(@Nonnull ShutdownListener listener)
listener
- the listener to be called.public static void exit(int exitStatus)
exitStatus
- the status to exit with.public void run()
run
in interface java.lang.Runnable
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.