Interface TaskScheduler.Task

Enclosing class:
TaskScheduler

public static interface TaskScheduler.Task
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
     
    run()
    Executes the task
  • Method Details

    • run

      Executes the task
      Returns:
      a TaskScheduler.TaskSchedule to describe the next task that should be scheduled or null, if no further tasks should be scheduled.
    • isReady

      default boolean isReady()
      Returns:
      true, if the task is ready for execution.