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(DataInputView in)
Reads the object's internal data from the given data input view.
|
String |
toString() |
CheckpointBarrier |
withOptions(CheckpointOptions checkpointOptions) |
void |
write(DataOutputView out)
Writes the object's internal data to the given data output view.
|
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(DataOutputView out) throws IOException
IOReadableWritable
out
- the output view to receive the data.IOException
- thrown if any error occurs while writing to the output streampublic void read(DataInputView in) throws IOException
IOReadableWritable
in
- the input view to read the data fromIOException
- thrown if any error occurs while reading from the input streampublic boolean isCheckpoint()
public CheckpointBarrier asUnaligned()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.