public enum AutoOffsetReset extends Enum<AutoOffsetReset>
| Enum Constant and Description |
|---|
EARLIEST
Automatically reset the offset to the earliest offset.
|
LATEST
Automatically reset the offset to the earliest offset.
|
NONE
Throw exception to the consumer if no previous offset is found for the consumer's group.
|
| Modifier and Type | Method and Description |
|---|---|
static AutoOffsetReset |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoOffsetReset[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoOffsetReset EARLIEST
public static final AutoOffsetReset LATEST
public static final AutoOffsetReset NONE
public static AutoOffsetReset[] values()
for (AutoOffsetReset c : AutoOffsetReset.values()) System.out.println(c);
public static AutoOffsetReset valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2004–2018. All rights reserved.