public final class Shutdown extends Object
For example:
@Inject Event<Shutdown> shutdown;
...
shutdown.fire(new Shutdown(Shutdown.Status.NORMAL));
| Modifier and Type | Class and Description |
|---|---|
static class |
Shutdown.Status
Status of the shell during shutdown.
|
| Constructor and Description |
|---|
Shutdown()
Defaults to
Shutdown.Status.NORMAL |
Shutdown(Shutdown.Status status)
Inform the shell to shut down with the given
Shutdown.Status, now. |
public Shutdown()
Shutdown.Status.NORMALpublic Shutdown(Shutdown.Status status)
Shutdown.Status, now.public Shutdown.Status getStatus()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.