public static interface ExternallyInducedSource.CheckpointTrigger
CheckpointTrigger
, the source function notifies the Flink
source operator when to trigger the checkpoint.Modifier and Type | Method and Description |
---|---|
void |
triggerCheckpoint(long checkpointId)
Triggers a checkpoint.
|
void triggerCheckpoint(long checkpointId) throws FlinkException
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.
checkpointId
- The ID that identifies the checkpoint.FlinkException
- Thrown when the checkpoint could not be triggered, for example
because of an invalid state or errors when storing the
checkpoint state.Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.