Class CheckpointBarrier
java.lang.Object
org.apache.flink.runtime.event.AbstractEvent
org.apache.flink.runtime.event.RuntimeEvent
org.apache.flink.runtime.io.network.api.CheckpointBarrier
- All Implemented Interfaces:
org.apache.flink.core.io.IOReadableWritable
Checkpoint barriers are used to align checkpoints throughout the streaming topology. The barriers
are emitted by the sources when instructed to do so by the JobManager. When operators receive a
CheckpointBarrier on one of its inputs, it knows that this is the point between the
pre-checkpoint and post-checkpoint data.
Once an operator has received a checkpoint barrier from all its input channels, it knows that a certain checkpoint is complete. It can trigger the operator specific checkpoint behavior and broadcast the barrier to downstream operators.
Depending on the semantic guarantees, may hold off post-checkpoint data until the checkpoint is complete (exactly once).
The checkpoint barrier IDs are strictly monotonous increasing.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckpointBarrier(long id, long timestamp, CheckpointOptions checkpointOptions) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()longinthashCode()booleanvoidread(org.apache.flink.core.memory.DataInputView in) toString()withOptions(CheckpointOptions checkpointOptions) voidwrite(org.apache.flink.core.memory.DataOutputView out)
-
Constructor Details
-
CheckpointBarrier
-
-
Method Details
-
getId
public long getId() -
getTimestamp
public long getTimestamp() -
getCheckpointOptions
-
withOptions
-
write
- Throws:
IOException
-
read
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-
isCheckpoint
public boolean isCheckpoint() -
asUnaligned
-