public interface ShutdownCommencingEvent extends MMEvent
It gives subscribers the opportunity to cancel shutdown (ideally only to ensure that data can be saved or other similarly-critical decisions).
All subscribers must first check if the shutdown has been canceled by
calling isCanceled(). If the shutdown has been canceled, the
event must be ignored.
The default implementation of this event posts on the Studio event bus,
so subscribe using EventManager.
| Modifier and Type | Method and Description |
|---|---|
void |
cancelShutdown()
Cancel shutdown.
|
boolean |
getIsCancelled()
Deprecated.
use
isCanceled() instead |
boolean |
isCanceled()
Return whether or not shutdown has been canceled.
|
void cancelShutdown()
boolean isCanceled()
@Deprecated boolean getIsCancelled()
isCanceled() instead