public final class Schedulers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Scheduler |
constantTimeOperations() |
static Scheduler |
getDefault() |
static long |
now() |
static void |
restoreDefault()
Restore the default scheduler back to the
DefaultScheduler
used when this class was initialized. |
static void |
setDefault(Scheduler scheduler)
Changes the default scheduler.
|
@Nonnull public static Scheduler getDefault()
public static void setDefault(@Nonnull
Scheduler scheduler)
scheduler - the new scheduler, non-nullpublic static void restoreDefault()
DefaultScheduler
used when this class was initialized.public static Scheduler constantTimeOperations()
public static long now()