接口 Barrier
-
- 所有已知实现类:
CheckpointBarrier
public interface Barrierbarrier flowing in data flow
-
-
字段概要
字段 修饰符和类型 字段 说明 static LongPREPARE_CLOSE_BARRIER_ID
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 Set<TaskLocation>closedTasks()Indicates a list of tasks that have been closed.longgetId()The ID of the barrier.booleanprepareClose()Barrier indicating that the task should prepare to close.default booleanprepareClose(TaskLocation task)Barrier indicating that the task should prepare to close.booleansnapshot()Whether the task needs to perform a status snapshot after the barrier is aligned.
-
-
-
字段详细资料
-
PREPARE_CLOSE_BARRIER_ID
static final Long PREPARE_CLOSE_BARRIER_ID
-
-
方法详细资料
-
getId
long getId()
The ID of the barrier.
-
snapshot
boolean snapshot()
Whether the task needs to perform a status snapshot after the barrier is aligned. For example, DDL barrier does not require a snapshot.
-
prepareClose
boolean prepareClose()
Barrier indicating that the task should prepare to close.
-
prepareClose
default boolean prepareClose(TaskLocation task)
Barrier indicating that the task should prepare to close.- 参数:
task- task location- 返回:
- If the task is included, the return true
-
closedTasks
Set<TaskLocation> closedTasks()
Indicates a list of tasks that have been closed.- 返回:
-
-