Package io.atomix.utils.concurrent
Interface Scheduler
- All Known Subinterfaces:
ThreadContext
- All Known Implementing Classes:
AbstractThreadContext,NullThreadContext,SingleThreadContext
public interface Scheduler
Scheduler.
-
Method Details
-
schedule
Schedules a runnable after a delay.- Parameters:
delay- the delay after which to run the callbacktimeUnit- the time unitcallback- the callback to run- Returns:
- the scheduled callback
-
schedule
Schedules a runnable after a delay.- Parameters:
delay- the delay after which to run the callbackcallback- the callback to run- Returns:
- the scheduled callback
-
schedule
Schedules a runnable at a fixed rate.- Parameters:
initialDelay- the initial delayinterval- the interval at which to run the callbacktimeUnit- the time unitcallback- the callback to run- Returns:
- the scheduled callback
-
schedule
Schedules a runnable at a fixed rate.- Parameters:
initialDelay- the initial delayinterval- the interval at which to run the callbackcallback- the callback to run- Returns:
- the scheduled callback
-