@Internal
public interface CheckpointBarrierHandler
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Cleans up all internally held resources.
|
long |
getAlignmentDurationNanos()
Gets the time that the latest alignment took, in nanoseconds.
|
org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent |
getNextNonBlocked()
Returns the next
BufferOrEvent that the operator may consume. |
boolean |
isEmpty()
Checks if the barrier handler has buffered any data internally.
|
void |
registerCheckpointEventHandler(org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable task)
Registers the task be notified once all checkpoint barriers have been received for a checkpoint.
|
org.apache.flink.runtime.io.network.partition.consumer.BufferOrEvent getNextNonBlocked()
throws Exception
BufferOrEvent that the operator may consume.
This call blocks until the next BufferOrEvent is available, or until the stream
has been determined to be finished.null, if the stream is finished.IOException - Thrown if the network or local disk I/O fails.InterruptedException - Thrown if the thread is interrupted while blocking during
waiting for the next BufferOrEvent to become available.Exception - Thrown in case that a checkpoint fails that is started as the result of receiving
the last checkpoint barriervoid registerCheckpointEventHandler(org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable task)
task - The task to notifyvoid cleanup()
throws IOException
IOException - Thrown if the cleanup of I/O resources failed.boolean isEmpty()
True, if no data is buffered internally, false otherwise.long getAlignmentDurationNanos()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.