public enum StreamState extends Enum<StreamState>
| Enum Constant and Description |
|---|
ACTIVE
Stream is still sending data.
|
SHUTDOWN
FIN has been sent/received.
|
SHUTDOWN_PENDING
Stream is waiting until all data is send in order to sen the FIN packet.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamState ACTIVE
public static final StreamState SHUTDOWN_PENDING
public static final StreamState SHUTDOWN
public static StreamState[] values()
for (StreamState c : StreamState.values()) System.out.println(c);
public static StreamState 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 © 2017. All rights reserved.