Enum KafkaConfigBuilder.AutoOffsetReset
- java.lang.Object
-
- java.lang.Enum<KafkaConfigBuilder.AutoOffsetReset>
-
- io.helidon.messaging.connectors.kafka.KafkaConfigBuilder.AutoOffsetReset
-
- All Implemented Interfaces:
Serializable
,Comparable<KafkaConfigBuilder.AutoOffsetReset>
- Enclosing class:
- KafkaConfigBuilder
public static enum KafkaConfigBuilder.AutoOffsetReset extends Enum<KafkaConfigBuilder.AutoOffsetReset>
What to do when there is no initial offset in Kafka.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KafkaConfigBuilder.AutoOffsetReset
valueOf(String name)
Returns the enum constant of this type with the specified name.static KafkaConfigBuilder.AutoOffsetReset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LATEST
public static final KafkaConfigBuilder.AutoOffsetReset LATEST
Automatically reset the offset to the earliest offset.
-
EARLIEST
public static final KafkaConfigBuilder.AutoOffsetReset EARLIEST
Automatically reset the offset to the latest offset.
-
NONE
public static final KafkaConfigBuilder.AutoOffsetReset NONE
Throw exception to the consumer if no previous offset is found for the consumer's group.
-
-
Method Detail
-
values
public static KafkaConfigBuilder.AutoOffsetReset[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KafkaConfigBuilder.AutoOffsetReset c : KafkaConfigBuilder.AutoOffsetReset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KafkaConfigBuilder.AutoOffsetReset 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 nameNullPointerException
- if the argument is null
-
-