public enum OffsetReset extends java.lang.Enum<OffsetReset>
auto.offset.reset
property for a Kafka consumer.Enum Constant and Description |
---|
EARLIEST
Earliest means that a consumer will start reading the earliest available records for a topic.
|
LATEST
Latest means that a consumer will start reading the latest consumer records.
|
Modifier and Type | Method and Description |
---|---|
static OffsetReset |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OffsetReset[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OffsetReset EARLIEST
public static final OffsetReset LATEST
public static OffsetReset[] values()
for (OffsetReset c : OffsetReset.values()) System.out.println(c);
public static OffsetReset valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null