public static enum AbstractCloseable.State extends Enum<AbstractCloseable.State>
| Enum Constant and Description |
|---|
Closed
Connection is closed
|
Graceful
Connection is being closed gracefully
|
Immediate
Connection is being terminated immediately
|
Opened
Connection is open
|
| Modifier and Type | Method and Description |
|---|---|
static AbstractCloseable.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractCloseable.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AbstractCloseable.State Opened
public static final AbstractCloseable.State Graceful
public static final AbstractCloseable.State Immediate
public static final AbstractCloseable.State Closed
public static AbstractCloseable.State[] values()
for (AbstractCloseable.State c : AbstractCloseable.State.values()) System.out.println(c);
public static AbstractCloseable.State 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 nullCopyright © 2018–2020 The Apache Software Foundation. All rights reserved.