StreamState¶
-
public enum
StreamState¶ Carrier stream state The stream state will be changed according to the phase of the stream.
Enum Constants¶
Closed¶
-
public static final StreamState
Closed¶ The stream closed gracefully.
Connected¶
-
public static final StreamState
Connected¶ The stream connected with remove peer.
Connecting¶
-
public static final StreamState
Connecting¶ The stream is trying to connect the remote.
Deactivated¶
-
public static final StreamState
Deactivated¶ The stream is deactived.
Error¶
-
public static final StreamState
Error¶ The stream is on error, cannot to continue.
Initialized¶
-
public static final StreamState
Initialized¶ Initialized stream.
TransportReady¶
-
public static final StreamState
TransportReady¶ The underlying transport is ready for the stream to start.
Methods¶
format¶
-
public static String
format(StreamState state)¶ Get description of carrier stream state.
- Parameters
state – The carrier stream state.
- Returns
The description of carrier stream state.
toString¶
valueOf¶
-
public static StreamState
valueOf(int state)¶ Get carrier stream state from state value.
- Parameters
state – The state value.
- Throws
- Returns
The carrier stream state.