|
|||||||||
| 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(Object key,
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(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 ShutdownDelayerpublic boolean canShutdown()
ShutdownDelayer
canShutdown in interface ShutdownDelayertrue if the system can shutdownpublic void cancelShutdown()
ShutdownDelayer
cancelShutdown in interface ShutdownDelayerpublic static boolean isShuttingDown()
public static void add(Object key,
String name,
long timeout)
public static void remove(Object key)
public static RequestShutdownDelayer getInstance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||