Interface BarrierAlignmentUtil.DelayableTimer

  • Enclosing class:
    BarrierAlignmentUtil

    public static interface BarrierAlignmentUtil.DelayableTimer
    It can register a task to be executed some time later.
    • Method Detail

      • registerTask

        BarrierAlignmentUtil.Cancellable registerTask​(Callable<?> callable,
                                                      Duration delay)
        Register a task to be executed some time later.
        Parameters:
        callable - the task to submit
        delay - how long after the delay to execute the task
        Returns:
        the Cancellable, it can cancel the task.