接口 Barrier
- 所有已知实现类:
CheckpointBarrier
public interface Barrier
barrier flowing in data flow
-
字段概要
字段 -
方法概要
修饰符和类型方法说明Indicates a list of tasks that have been closed.longgetId()The ID of the barrier.booleanBarrier 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
-
-
方法详细资料
-
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
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.- 返回:
-