Interface ExternallyInducedSource.CheckpointTrigger

Enclosing interface:
ExternallyInducedSource<T,CD>

public static interface ExternallyInducedSource.CheckpointTrigger
Through the CheckpointTrigger, the source function notifies the Flink source operator when to trigger the checkpoint.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    triggerCheckpoint(long checkpointId)
    Triggers a checkpoint.
  • Method Details

    • triggerCheckpoint

      void triggerCheckpoint(long checkpointId) throws org.apache.flink.util.FlinkException
      Triggers a checkpoint. This method should be called by the source when it sees the event that indicates that a checkpoint should be triggered.

      When this method is called, the parallel operator instance in which the calling source function runs will perform its checkpoint and insert the checkpoint barrier into the data stream.

      Parameters:
      checkpointId - The ID that identifies the checkpoint.
      Throws:
      org.apache.flink.util.FlinkException - Thrown when the checkpoint could not be triggered, for example because of an invalid state or errors when storing the checkpoint state.