public static interface ExternallyInducedSource.CheckpointTrigger
CheckpointTrigger
, the source function notifies the Flink
source operator when to trigger the checkpoint.限定符和类型 | 方法和说明 |
---|---|
void |
triggerCheckpoint(long checkpointId)
Triggers a checkpoint.
|
void triggerCheckpoint(long checkpointId) throws org.apache.flink.util.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.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.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.