所有已知实现类:
CheckpointBarrier

public interface Barrier
barrier flowing in data flow
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final Long
     
  • 方法概要

    修饰符和类型
    方法
    说明
    Indicates a list of tasks that have been closed.
    long
    The ID of the barrier.
    boolean
    Barrier indicating that the task should prepare to close.
    default boolean
    Barrier indicating that the task should prepare to close.
    boolean
    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.
      返回: