Interface Schedule
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CronSchedule,IntervalSchedule
Represents a schedule that can calculate the next execution time.
Used for recurring tasks (cron expressions or fixed intervals).
-
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable description of this schedule.next(OffsetDateTime from) 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
-