Interface Schedule

All Superinterfaces:
Serializable
All Known Implementing Classes:
CronSchedule, IntervalSchedule

public interface Schedule extends Serializable
Represents a schedule that can calculate the next execution time. Used for recurring tasks (cron expressions or fixed intervals).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a human-readable description of this schedule.
    Calculates the next execution time from the given time.
  • Method Details

    • next

      Calculates the next execution time from the given time.
      Parameters:
      from - the reference time to calculate from
      Returns:
      the next execution time after the given time
    • description

      String description()
      Returns a human-readable description of this schedule.
      Returns:
      description of the schedule