Enum Class CloseReason

java.lang.Object
java.lang.Enum<CloseReason>
tel.schich.libdatachannel.CloseReason
All Implemented Interfaces:
Serializable, Comparable<CloseReason>, Constable

public enum CloseReason extends Enum<CloseReason>
Why a peer connection closed, as far as this side can tell.
  • Enum Constant Details

    • RTC_CLOSE_REASON_NONE

      public static final CloseReason RTC_CLOSE_REASON_NONE
      Still open.
    • RTC_CLOSE_REASON_LOCAL

      public static final CloseReason RTC_CLOSE_REASON_LOCAL
      Closed by this side.
    • RTC_CLOSE_REASON_REMOTE_SHUTDOWN

      public static final CloseReason RTC_CLOSE_REASON_REMOTE_SHUTDOWN
      The remote shut SCTP or DTLS down.
    • RTC_CLOSE_REASON_REMOTE_ABORT

      public static final CloseReason RTC_CLOSE_REASON_REMOTE_ABORT
      The remote aborted the SCTP association.
    • RTC_CLOSE_REASON_SCTP_TIMEOUT

      public static final CloseReason RTC_CLOSE_REASON_SCTP_TIMEOUT
      The remote stopped acknowledging SCTP data.
    • RTC_CLOSE_REASON_ICE_FAILED

      public static final CloseReason RTC_CLOSE_REASON_ICE_FAILED
      ICE lost connectivity to the remote.
    • RTC_CLOSE_REASON_TRANSPORT_FAILED

      public static final CloseReason RTC_CLOSE_REASON_TRANSPORT_FAILED
      DTLS or SCTP failed otherwise.
  • Method Details

    • values

      public static CloseReason[] 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

      public static CloseReason valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static @Nullable CloseReason of(int reason)