接口 Barrier

  • 所有已知实现类:
    CheckpointBarrier

    public interface Barrier
    barrier flowing in data flow
    • 字段详细资料

      • 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.
        返回: