public abstract class Scheduler extends Object
Scheduler is an object that schedules units of work. You can find common implementations of this class in
Schedulers.
| Modifier and Type | Class and Description |
|---|---|
static class |
Scheduler
Sequential Scheduler for executing actions on a single thread or event loop.
|
| Constructor and Description |
|---|
Scheduler()
|
| Modifier and Type | Method and Description |
|---|---|
abstract Scheduler |
createWorker()
Retrieves or creates a new
Scheduler.Worker that represents serial execution of actions.
|
long |
now()
Gets the current time, in milliseconds, according to this Scheduler.
|
public abstract Scheduler.Worker createWorker()
Scheduler.Worker that represents serial execution of actions.
When work is completed it should be unsubscribed using Subscription.
Work on a Scheduler.Worker is guaranteed to be sequential.
public long now()