Package tel.schich.libdatachannel
Enum Class CloseReason
- All Implemented Interfaces:
Serializable,Comparable<CloseReason>,Constable
Why a peer connection closed, as far as this side can tell.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionICE lost connectivity to the remote.Closed by this side.Still open.The remote aborted the SCTP association.The remote shut SCTP or DTLS down.The remote stopped acknowledging SCTP data.DTLS or SCTP failed otherwise. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable CloseReasonof(int reason) static CloseReasonReturns the enum constant of this class with the specified name.static CloseReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RTC_CLOSE_REASON_NONE
Still open. -
RTC_CLOSE_REASON_LOCAL
Closed by this side. -
RTC_CLOSE_REASON_REMOTE_SHUTDOWN
The remote shut SCTP or DTLS down. -
RTC_CLOSE_REASON_REMOTE_ABORT
The remote aborted the SCTP association. -
RTC_CLOSE_REASON_SCTP_TIMEOUT
The remote stopped acknowledging SCTP data. -
RTC_CLOSE_REASON_ICE_FAILED
ICE lost connectivity to the remote. -
RTC_CLOSE_REASON_TRANSPORT_FAILED
DTLS or SCTP failed otherwise.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
of
-