Package io.activej.async.service
Interface EventloopTaskScheduler.Schedule
-
- Enclosing class:
- EventloopTaskScheduler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface EventloopTaskScheduler.Schedule
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static EventloopTaskScheduler.Scheduleimmediate()Schedules immediate execution.longnextTimestamp(long now, long lastStartTime, long lastCompleteTime)static EventloopTaskScheduler.ScheduleofDelay(long delay)static EventloopTaskScheduler.ScheduleofDelay(Duration delay)Schedules task after delay.static EventloopTaskScheduler.ScheduleofInterval(long interval)Schedules task after last complete time and next task.static EventloopTaskScheduler.ScheduleofInterval(Duration interval)static EventloopTaskScheduler.ScheduleofPeriod(long period)Schedules task in period of current and next task.static EventloopTaskScheduler.ScheduleofPeriod(Duration period)
-
-
-
Method Detail
-
nextTimestamp
long nextTimestamp(long now, long lastStartTime, long lastCompleteTime)
-
immediate
static EventloopTaskScheduler.Schedule immediate()
Schedules immediate execution.
-
ofDelay
static EventloopTaskScheduler.Schedule ofDelay(Duration delay)
Schedules task after delay.
-
ofDelay
static EventloopTaskScheduler.Schedule ofDelay(long delay)
- See Also:
ofDelay(Duration)
-
ofInterval
static EventloopTaskScheduler.Schedule ofInterval(Duration interval)
- See Also:
ofInterval(long)
-
ofInterval
static EventloopTaskScheduler.Schedule ofInterval(long interval)
Schedules task after last complete time and next task.
-
ofPeriod
static EventloopTaskScheduler.Schedule ofPeriod(Duration period)
- See Also:
ofPeriod(long)
-
ofPeriod
static EventloopTaskScheduler.Schedule ofPeriod(long period)
Schedules task in period of current and next task.
-
-