|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.shutdown.RequestShutdownDelayer
public class RequestShutdownDelayer
Generic shutdown delayer that allows short running requests to register themselves and delay a shutdown. A timeout can be given as well.
Method Summary | |
---|---|
static void |
add(java.lang.Object key,
java.lang.String name,
long timeout)
|
void |
cancelShutdown()
Method invoked to indicate the cancelling of the shutdown sequence. |
boolean |
canShutdown()
Specifies whether the system can safely shutdown. |
static RequestShutdownDelayer |
getInstance()
|
void |
initiateShutdown()
Method invoked to indicate the beginning of the shutdown sequence. |
static boolean |
isShuttingDown()
|
static void |
remove(java.lang.Object key)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void initiateShutdown()
ShutdownDelayer
initiateShutdown
in interface ShutdownDelayer
public boolean canShutdown()
ShutdownDelayer
canShutdown
in interface ShutdownDelayer
true
if the system can shutdownpublic void cancelShutdown()
ShutdownDelayer
cancelShutdown
in interface ShutdownDelayer
public static boolean isShuttingDown()
public static void add(java.lang.Object key, java.lang.String name, long timeout)
public static void remove(java.lang.Object key)
public static RequestShutdownDelayer getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |