Interface ScheduleContext


public interface ScheduleContext
调度状态
Version:
0.0.1
Author:
scx567888
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    取消任务, 不包括已经开始的
    下一次运行的时间, 如果下一次不会运行任何任务 则返回 null
    nextRunTime(int count)
    指定次数后运行的时间 假设 当前调度器拥有 maxRunCount 限制 那么当超出限制之后 会返回 null
    long
    任务运行的次数 会动态变化
    调度器状态 这表示宏观的调度器的状态而不是 子任务的状态 , 比如在两个任务的间歇期间 仍会返回 进行中
  • Method Details

    • runCount

      long runCount()
      任务运行的次数 会动态变化
    • nextRunTime

      Instant nextRunTime()
      下一次运行的时间, 如果下一次不会运行任何任务 则返回 null
    • nextRunTime

      Instant nextRunTime(int count)
      指定次数后运行的时间 假设 当前调度器拥有 maxRunCount 限制 那么当超出限制之后 会返回 null
    • cancel

      void cancel()
      取消任务, 不包括已经开始的
    • status

      ScheduleStatus status()
      调度器状态 这表示宏观的调度器的状态而不是 子任务的状态 , 比如在两个任务的间歇期间 仍会返回 进行中