public interface GracefulShutdown
Modifier and Type | Method and Description |
---|---|
boolean |
cancelShutdown()
Cancel shutdown
|
int |
getDelay()
Get the delay until shutdown occurs
|
boolean |
isShutdown()
Is the component shutdown
|
void |
prepareShutdown()
Signal the component to prepare for shutdown
|
void |
prepareShutdown(GracefulCallback cb)
Signal the component to prepare for shutdown
|
void |
prepareShutdown(int shutdown)
Signal the component to prepare for shutdown
|
void |
prepareShutdown(int shutdown,
GracefulCallback cb)
Signal the component to prepare for shutdown
|
void |
shutdown()
Shutdown the component
|
boolean cancelShutdown()
void prepareShutdown()
void prepareShutdown(GracefulCallback cb)
cb
- The callback handlevoid prepareShutdown(int shutdown)
shutdown
- The number of seconds after which shutdown is forcedvoid prepareShutdown(int shutdown, GracefulCallback cb)
shutdown
- The number of seconds after which shutdown is forcedcb
- The callback handlevoid shutdown()
boolean isShutdown()
int getDelay()
Integer.MAX_VALUE
for active,
or Integer.MIN_VALUE
for inactiveCopyright © 2021 JBoss by Red Hat. All rights reserved.