public enum StreamState extends java.lang.Enum<StreamState>
| Enum Constant and Description |
|---|
Closed
The stream closed gracefully.
|
Connected
The stream connected with remove peer.
|
Connecting
The stream is trying to connect the remote.
|
Deactivated
The stream is deactived.
|
Error
The stream is on error, cannot to continue.
|
Initialized
Initialized stream.
|
TransportReady
The underlying transport is ready for the stream to start.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(StreamState state)
Get description of carrier stream state.
|
java.lang.String |
toString()
Get description of current carrier stream state.
|
int |
value()
Get state value.
|
static StreamState |
valueOf(int state)
Get carrier stream state from state value.
|
static StreamState |
valueOf(java.lang.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 Initialized
public static final StreamState TransportReady
public static final StreamState Connecting
public static final StreamState Connected
public static final StreamState Deactivated
public static final StreamState Closed
public static final StreamState Error
public static StreamState[] values()
for (StreamState c : StreamState.values()) System.out.println(c);
public static StreamState 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 nullpublic static StreamState valueOf(int state)
state - The state value.java.lang.IllegalArgumentExceptionpublic int value()
public static java.lang.String format(StreamState state)
state - The carrier stream state.public java.lang.String toString()
toString in class java.lang.Enum<StreamState>