@Internal public enum OffsetCommitMode extends Enum<OffsetCommitMode>
The exact value of this is determined at runtime in the consumer subtasks.
Enum Constant and Description |
---|
DISABLED
Completely disable offset committing.
|
KAFKA_PERIODIC
Commit offsets periodically back to Kafka, using the auto commit functionality of internal
Kafka clients.
|
ON_CHECKPOINTS
Commit offsets back to Kafka only when checkpoints are completed.
|
Modifier and Type | Method and Description |
---|---|
static OffsetCommitMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OffsetCommitMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OffsetCommitMode DISABLED
public static final OffsetCommitMode ON_CHECKPOINTS
public static final OffsetCommitMode KAFKA_PERIODIC
public static OffsetCommitMode[] values()
for (OffsetCommitMode c : OffsetCommitMode.values()) System.out.println(c);
public static OffsetCommitMode 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 © 2014–2021 The Apache Software Foundation. All rights reserved.