CloseReason

public enum CloseReason

Multiplexing channel close reason mode.

Enum Constants

Error

public static final CloseReason Error

Channel closed because error occured.

Normal

public static final CloseReason Normal

Channel closed normaly.

Timeout

public static final CloseReason Timeout

Channel closed because of timeout.

Methods

format

public static String format(CloseReason reason)

Get the fully formatized string of close reason instance.

Parameters
  • reason – The close reason instance.

Returns

The formatized string of close reason.

toString

public String toString()

Get fully formatized string.

Returns

The fully formatized string.

value

public int value()

Get reason value.

Returns

The reason value.

valueOf

public static CloseReason valueOf(int reason)

Get CloseReason instance from reason value.

Parameters
  • reason – The value of reason mode.

Throws
Returns

The close reason instance.