Package io.streamnative.kafka.client.api
Enum KafkaVersion
- All Implemented Interfaces:
Serializable,Comparable<KafkaVersion>,java.lang.constant.Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic KafkaVersionReturns the enum constant of this type with the specified name.static KafkaVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
KAFKA_3_0_0
-
KAFKA_2_8_0
-
KAFKA_1_0_0
-
KAFKA_0_10_0_0
-
KAFKA_0_9_0_0
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getStringSerializer
-
getStringDeserializer
-
supportHeader
public boolean supportHeader() -
supportSaslPlainAuthentication
public boolean supportSaslPlainAuthentication()
-