Enum KafkaVersion

java.lang.Object
java.lang.Enum<KafkaVersion>
io.streamnative.kafka.client.api.KafkaVersion
All Implemented Interfaces:
Serializable, Comparable<KafkaVersion>, java.lang.constant.Constable

public enum KafkaVersion extends Enum<KafkaVersion>
The version that represents Kafka client's version. For each kafka-x.y.z module, the class path is relocated from `org.apache.kafka` to `org.apache.kafka-x-y-z` package. See each module's pom.xml for details. This class provides convenient methods to get the actual class path for different Kafka versions.
  • Enum Constant Details

  • Method Details

    • values

      public static KafkaVersion[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static KafkaVersion valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getStringSerializer

      public String getStringSerializer()
    • getStringDeserializer

      public String getStringDeserializer()
    • supportHeader

      public boolean supportHeader()
    • supportSaslPlainAuthentication

      public boolean supportSaslPlainAuthentication()