@Public public interface CheckpointListener
Modifier and Type | Method and Description |
---|---|
default void |
notifyCheckpointAborted(long checkpointId)
This method is called as a notification once a distributed checkpoint has been aborted.
|
void |
notifyCheckpointComplete(long checkpointId)
This method is called as a notification once a distributed checkpoint has been completed.
|
void notifyCheckpointComplete(long checkpointId) throws Exception
Note that any exception during this method will not cause the checkpoint to fail any more.
checkpointId
- The ID of the checkpoint that has been completed.Exception
- This method can propagate exceptions, which leads to a failure/recovery for
the task. Not that this will NOT lead to the checkpoint being revoked.default void notifyCheckpointAborted(long checkpointId) throws Exception
checkpointId
- The ID of the checkpoint that has been aborted.Exception
- This method can propagate exceptions, which leads to a failure/recovery for
the task.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.