Enum Class PayloadType

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

public enum PayloadType extends Enum<PayloadType>

Enumeration defining the types of payload used on commands

  • Enum Constant Details

    • SUBJECT_TYPE

      public static final PayloadType SUBJECT_TYPE

      The payload should be of type SubjectType.

    • RECORD

      public static final PayloadType RECORD

      The payload should be a map of field names to values or a list of name, value tuples.

    • JSON

      public static final PayloadType JSON

      The payload should be an object that can be serialized to JSON.

  • Method Details

    • values

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