| Modifier and Type | Field and Description |
|---|---|
| pack-priv @Nullable Future | |
| pack-priv long | |
| pack-priv final Scheduler | |
| pack-priv static final long |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | calculateSchedule(long now, long delay, long scheduleAt)
Returns the delay and sets the next fire time. |
| public void | |
| public boolean | |
| pack-priv boolean | maySkip(long scheduleAt)
Returns if the current fire time is sooner, or if it is later and within the tolerance limit. |
| public void |
| future | back to summary |
|---|---|
| pack-priv @Nullable Future<?> future | |
| nextFireTime | back to summary |
|---|---|
| pack-priv long nextFireTime | |
| scheduler | back to summary |
|---|---|
| pack-priv final Scheduler scheduler | |
| TOLERANCE | back to summary |
|---|---|
| pack-priv static final long TOLERANCE | |
| Pacer | back to summary |
|---|---|
| pack-priv Pacer(Scheduler scheduler) | |
| calculateSchedule | back to summary |
|---|---|
| pack-priv long calculateSchedule(long now, long delay, long scheduleAt) Returns the delay and sets the next fire time. | |
| cancel | back to summary |
|---|---|
| public void cancel() Attempts to cancel execution of the scheduled task, if present. | |
| isScheduled | back to summary |
|---|---|
| public boolean isScheduled() Returns if a task is scheduled to run. | |
| maySkip | back to summary |
|---|---|
| pack-priv boolean maySkip(long scheduleAt) Returns if the current fire time is sooner, or if it is later and within the tolerance limit. | |
| schedule | back to summary |
|---|---|
| public void schedule(Executor executor, Runnable command, long now, long delay) Schedules the task, pacing the execution if occurring too often. | |