public enum GracefulShutdownResult extends java.lang.Enum<GracefulShutdownResult>
GracefulShutdownCallback
,
WebServer.shutDownGracefully(GracefulShutdownCallback)
Enum Constant and Description |
---|
IDLE
The server was idle with no active requests at the end of the grace period.
|
IMMEDIATE
The server was shutdown immediately, ignoring any active requests.
|
REQUESTS_ACTIVE
Requests remained active at the end of the grace period.
|
Modifier and Type | Method and Description |
---|---|
static GracefulShutdownResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GracefulShutdownResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GracefulShutdownResult REQUESTS_ACTIVE
public static final GracefulShutdownResult IDLE
public static final GracefulShutdownResult IMMEDIATE
public static GracefulShutdownResult[] values()
for (GracefulShutdownResult c : GracefulShutdownResult.values()) System.out.println(c);
public static GracefulShutdownResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null