Enum Class IOType

java.lang.Object
java.lang.Enum<IOType>
org.apache.pulsar.io.core.annotations.IOType
All Implemented Interfaces:
Serializable, Comparable<IOType>, Constable

@Public @Stable public enum IOType extends Enum<IOType>
Type of the io connector.
  • Enum Constant Details

    • SINK

      public static final IOType SINK
      Sink connector.
    • SOURCE

      public static final IOType SOURCE
      Source connector.
  • Method Details

    • values

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