static enum HttpOutput.ApiState extends java.lang.Enum<HttpOutput.ApiState>
OPEN/BLOCKING---last----------------------------+ CLOSED/BLOCKING / | ^ \ ^ ^ / w | \ / | / | owc +--owcL------------------->--owcL-----\---------------------+ | | v | / / V | swl OPEN/BLOCKED----last---->CLOSE/BLOCKED----owc----->CLOSING/BLOCKED--owcL------+ | \ \ V +-->OPEN/READY------last---------------------------+ / ^ | \ / / w \ | / | +--owcL------------------->--owcL----\---------------------------+ | / v / / V | | irt OPEN/PENDING----last---->CLOSE/PENDING----owc---->CLOSING/PENDING--owcL----+ | | \ / | | ^ | | | owc \/ owc irf / irf | | | /\ | | / | | | | / \ V | / | V V | irf OPEN/ASYNC------last----------|----------------+ | CLOSED/ASYNC | \ | | ^ ^ \ \ | | | | \ \ | | | | \ v v v | | +--OPEN/UNREADY----last---->CLOSE/UNREADY----owc----->CLOSING/UNREADY--owcL---+ | \ \ | +--owcL------------------->--owcL--------------------------------+ swl : setWriteListener w : write owc : onWriteComplete last == false owcL : onWriteComplete last == true irf : isReady() == false irt : isReady() == true last : close() or complete(Callback) or write of known last content
Enum Constant and Description |
---|
ASYNC |
BLOCKED |
BLOCKING |
PENDING |
READY |
UNREADY |
Modifier and Type | Method and Description |
---|---|
static HttpOutput.ApiState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpOutput.ApiState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpOutput.ApiState BLOCKING
public static final HttpOutput.ApiState BLOCKED
public static final HttpOutput.ApiState ASYNC
public static final HttpOutput.ApiState READY
public static final HttpOutput.ApiState PENDING
public static final HttpOutput.ApiState UNREADY
public static HttpOutput.ApiState[] values()
for (HttpOutput.ApiState c : HttpOutput.ApiState.values()) System.out.println(c);
public static HttpOutput.ApiState 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