Enum Class KafkaConfigBuilder.AutoOffsetReset
java.lang.Object
java.lang.Enum<KafkaConfigBuilder.AutoOffsetReset>
io.helidon.messaging.connectors.kafka.KafkaConfigBuilder.AutoOffsetReset
- All Implemented Interfaces:
Serializable
,Comparable<KafkaConfigBuilder.AutoOffsetReset>
,Constable
- Enclosing class:
KafkaConfigBuilder
public static enum KafkaConfigBuilder.AutoOffsetReset
extends Enum<KafkaConfigBuilder.AutoOffsetReset>
What to do when there is no initial offset in Kafka.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static KafkaConfigBuilder.AutoOffsetReset[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LATEST
Automatically reset the offset to the earliest offset. -
EARLIEST
Automatically reset the offset to the latest offset. -
NONE
Throw exception to the consumer if no previous offset is found for the consumer's group.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-