Enum Class SourceStatus

java.lang.Object
java.lang.Enum<SourceStatus>
com.caplin.streamlink.SourceStatus
All Implemented Interfaces:
Serializable, Comparable<SourceStatus>, Constable

public enum SourceStatus extends Enum<SourceStatus>

Enumeration that defines the status of a source.

The SourceStatus will be provided by calling getSourceStatus on a SourceStatusEvent.

  • Enum Constant Details

    • DOWN

      public static final SourceStatus DOWN

      A source has gone up.

    • UP

      public static final SourceStatus UP

      A source has gone down.

  • Method Details

    • values

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