public enum CheckpointMode extends Enum<CheckpointMode>
| Enum Constant and Description |
|---|
BATCH
Checkpoint after each processed batch of records.
|
MANUAL
User decide when to checkpoint manually
|
PARTITION_COUNT
Checkpoint once for number of message specified by
CheckpointConfig.getCheckpointCount()
in each partition |
RECORD
Checkpoint after each processed record.
|
TIME
Checkpoint once for each time interval specified by
CheckpointConfig.getCheckpointInterval() |
| Modifier and Type | Method and Description |
|---|---|
static CheckpointMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CheckpointMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckpointMode RECORD
ListenerMode.RECORD is used.public static final CheckpointMode BATCH
public static final CheckpointMode MANUAL
public static final CheckpointMode PARTITION_COUNT
CheckpointConfig.getCheckpointCount()
in each partitionpublic static final CheckpointMode TIME
CheckpointConfig.getCheckpointInterval()public static CheckpointMode[] values()
for (CheckpointMode c : CheckpointMode.values()) System.out.println(c);
public static CheckpointMode 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 © 2019 Pivotal Software, Inc.. All rights reserved.