@ThreadSafe public class CheckpointsCleaner extends Object implements Serializable, org.apache.flink.util.AutoCloseableAsync
| 构造器和说明 |
|---|
CheckpointsCleaner() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSubsumedCheckpoint(CompletedCheckpoint completedCheckpoint)
Add one subsumed checkpoint to CheckpointsCleaner, the subsumed checkpoint would be discarded
at
cleanSubsumedCheckpoints(long, Set, Runnable, Executor). |
void |
cleanCheckpoint(Checkpoint checkpoint,
boolean shouldDiscard,
Runnable postCleanAction,
Executor executor) |
void |
cleanCheckpointOnFailedStoring(CompletedCheckpoint completedCheckpoint,
Executor executor) |
void |
cleanSubsumedCheckpoints(long upTo,
Set<Long> stillInUse,
Runnable postCleanAction,
Executor executor)
Clean checkpoint that is not in the given .
|
CompletableFuture<Void> |
closeAsync() |
public void cleanCheckpoint(Checkpoint checkpoint, boolean shouldDiscard, Runnable postCleanAction, Executor executor)
public void addSubsumedCheckpoint(CompletedCheckpoint completedCheckpoint)
cleanSubsumedCheckpoints(long, Set, Runnable, Executor).completedCheckpoint - which is subsumed.public void cleanSubsumedCheckpoints(long upTo,
Set<Long> stillInUse,
Runnable postCleanAction,
Executor executor)
upTo - lowest CheckpointID which is still valid.stillInUse - the state of those checkpoints are still referenced.postCleanAction - post action after cleaning.executor - is used to perform the cleanup logic.public void cleanCheckpointOnFailedStoring(CompletedCheckpoint completedCheckpoint, Executor executor)
public CompletableFuture<Void> closeAsync()
closeAsync 在接口中 org.apache.flink.util.AutoCloseableAsyncCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.