CommT - type of the committable@Internal
public interface CheckpointCommittableManager<CommT>
CheckpointCommittableManager collects committables for one checkpoint across
potentially multiple upstream subtasks.
While it collects committables from multiple upstream subtasks, it belongs to exactly one committer subtask.
Each upstream subtask of this particular checkpoint is represented by a SubtaskCommittableManager.
| Modifier and Type | Method and Description |
|---|---|
void |
commit(org.apache.flink.api.connector.sink2.Committer<CommT> committer,
int maxRetries)
Commits all due committables if all respective committables of the specific subtask and
checkpoint have been received.
|
long |
getCheckpointId()
Returns the checkpoint id in which the committables were created.
|
int |
getNumberOfSubtasks()
Returns the number of upstream subtasks belonging to the checkpoint.
|
Collection<CommT> |
getSuccessfulCommittables() |
boolean |
hasGloballyReceivedAll()
Returns true if all committables of all upstream subtasks arrived, which is only guaranteed
to happen if the DOP of the caller is 1.
|
boolean |
isFinished() |
long getCheckpointId()
int getNumberOfSubtasks()
boolean isFinished()
boolean hasGloballyReceivedAll()
void commit(org.apache.flink.api.connector.sink2.Committer<CommT> committer, int maxRetries) throws IOException, InterruptedException
committer - used to commit to the external systemmaxRetries - IOExceptionInterruptedExceptionCollection<CommT> getSuccessfulCommittables()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.