public class CheckpointBarrier extends RuntimeEvent
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 and Description |
|---|
CheckpointBarrier(long id,
long timestamp,
CheckpointOptions checkpointOptions) |
| Modifier and Type | Method and Description |
|---|---|
CheckpointBarrier |
asUnaligned() |
boolean |
equals(Object other) |
CheckpointOptions |
getCheckpointOptions() |
long |
getId() |
long |
getTimestamp() |
int |
hashCode() |
boolean |
isCheckpoint() |
void |
read(org.apache.flink.core.memory.DataInputView in) |
String |
toString() |
CheckpointBarrier |
withOptions(CheckpointOptions checkpointOptions) |
void |
write(org.apache.flink.core.memory.DataOutputView out) |
public CheckpointBarrier(long id,
long timestamp,
CheckpointOptions checkpointOptions)
public long getId()
public long getTimestamp()
public CheckpointOptions getCheckpointOptions()
public CheckpointBarrier withOptions(CheckpointOptions checkpointOptions)
public void write(org.apache.flink.core.memory.DataOutputView out)
throws IOException
IOExceptionpublic void read(org.apache.flink.core.memory.DataInputView in)
throws IOException
IOExceptionpublic boolean isCheckpoint()
public CheckpointBarrier asUnaligned()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.