Package io.activej.async.service
Interface TaskScheduler.Schedule
- Enclosing class:
- TaskScheduler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaskScheduler.ScheduleSchedules immediate execution.longnextTimestamp(long now, long lastStartTime, long lastCompleteTime) static TaskScheduler.ScheduleofDelay(long delay) Schedules a task after delay.static TaskScheduler.ScheduleSchedules a task after delay.static TaskScheduler.ScheduleofInterval(long interval) Schedules a task after last complete time and next task.static TaskScheduler.ScheduleofInterval(Duration interval) Schedules a task after last complete time and next task.static TaskScheduler.ScheduleofPeriod(long period) Schedules a task in a period of current and next task.static TaskScheduler.ScheduleSchedules a task in a period of current and next task.
-
Method Details
-
nextTimestamp
long nextTimestamp(long now, long lastStartTime, long lastCompleteTime) -
immediate
Schedules immediate execution. -
ofDelay
Schedules a task after delay. -
ofDelay
Schedules a task after delay. -
ofInterval
Schedules a task after last complete time and next task. -
ofInterval
Schedules a task after last complete time and next task. -
ofPeriod
Schedules a task in a period of current and next task. -
ofPeriod
Schedules a task in a period of current and next task.
-