public enum GracefulShutdownResult extends 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(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null