public final class SchedulePeriodicHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SchedulePeriodicHelper.NowNanoSupplier
Return the current time in nanoseconds.
|
Modifier and Type | Field and Description |
---|---|
static long |
CLOCK_DRIFT_TOLERANCE_NANOS
The tolerance for a clock drift in nanoseconds where the periodic scheduler will rebase.
|
Modifier and Type | Method and Description |
---|---|
static Subscription |
schedulePeriodically(Scheduler.Worker worker,
Action0 action,
long initialDelay,
long period,
TimeUnit unit,
SchedulePeriodicHelper.NowNanoSupplier nowNanoSupplier) |
public static final long CLOCK_DRIFT_TOLERANCE_NANOS
The associated system parameter, rx.scheduler.drift-tolerance
, expects its value in minutes.
public static Subscription schedulePeriodically(Scheduler.Worker worker, Action0 action, long initialDelay, long period, TimeUnit unit, SchedulePeriodicHelper.NowNanoSupplier nowNanoSupplier)
Copyright © 2017. All rights reserved.