public class CheckpointOptions extends Object implements Serializable
barriers
may have different options.
The CheckpointProperties
are related and cover properties that are only relevant at
the CheckpointCoordinator
. These options are relevant at the AbstractInvokable
instances running on task managers.
Modifier and Type | Class and Description |
---|---|
static class |
CheckpointOptions.AlignmentType
How a checkpoint should be aligned.
|
Modifier and Type | Field and Description |
---|---|
static long |
NO_ALIGNMENT_TIME_OUT |
Constructor and Description |
---|
CheckpointOptions(CheckpointType checkpointType,
CheckpointStorageLocationReference targetLocation) |
CheckpointOptions(CheckpointType checkpointType,
CheckpointStorageLocationReference targetLocation,
CheckpointOptions.AlignmentType alignmentType,
long alignmentTimeout) |
public static final long NO_ALIGNMENT_TIME_OUT
@VisibleForTesting public CheckpointOptions(CheckpointType checkpointType, CheckpointStorageLocationReference targetLocation)
public CheckpointOptions(CheckpointType checkpointType, CheckpointStorageLocationReference targetLocation, CheckpointOptions.AlignmentType alignmentType, long alignmentTimeout)
public static CheckpointOptions notExactlyOnce(CheckpointType type, CheckpointStorageLocationReference location)
public static CheckpointOptions alignedNoTimeout(CheckpointType type, CheckpointStorageLocationReference location)
public static CheckpointOptions unaligned(CheckpointStorageLocationReference location)
public static CheckpointOptions alignedWithTimeout(CheckpointStorageLocationReference location, long alignmentTimeout)
public static CheckpointOptions forConfig(CheckpointType checkpointType, CheckpointStorageLocationReference locationReference, boolean isExactlyOnceMode, boolean isUnalignedEnabled, long alignmentTimeout)
public boolean needsAlignment()
public long getAlignmentTimeout()
public CheckpointOptions.AlignmentType getAlignment()
public boolean isTimeoutable()
public CheckpointType getCheckpointType()
public CheckpointStorageLocationReference getTargetLocation()
public boolean isExactlyOnceMode()
public boolean isUnalignedCheckpoint()
public CheckpointOptions withUnalignedSupported()
public CheckpointOptions withUnalignedUnsupported()
@VisibleForTesting public static CheckpointOptions forCheckpointWithDefaultLocation()
public CheckpointOptions toUnaligned()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.