@Internal public enum CheckpointRetentionPolicy extends Enum<CheckpointRetentionPolicy>
Enum Constant and Description |
---|
NEVER_RETAIN_AFTER_TERMINATION
Checkpoints should always be cleaned up when an application reaches a terminal state.
|
RETAIN_ON_CANCELLATION
Checkpoints should be retained on cancellation and failure.
|
RETAIN_ON_FAILURE
Checkpoints should be retained on failure, but not on cancellation.
|
Modifier and Type | Method and Description |
---|---|
static CheckpointRetentionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CheckpointRetentionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckpointRetentionPolicy RETAIN_ON_CANCELLATION
public static final CheckpointRetentionPolicy RETAIN_ON_FAILURE
public static final CheckpointRetentionPolicy NEVER_RETAIN_AFTER_TERMINATION
public static CheckpointRetentionPolicy[] values()
for (CheckpointRetentionPolicy c : CheckpointRetentionPolicy.values()) System.out.println(c);
public static CheckpointRetentionPolicy 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–2019 The Apache Software Foundation. All rights reserved.