public interface Clock
currentTimeMillis() and that can be used to
schedule(ScheduledExecutorService, Runnable, long) a Runnable
for execution against it.| Modifier and Type | Field and Description |
|---|---|
static Clock |
SYSTEM
java.lang.System Clock (digital approximation of wall clock).
|
| Modifier and Type | Method and Description |
|---|---|
long |
currentTimeMillis()
Returns the milliseconds UTC since the epoch.
|
void |
schedule(ScheduledExecutorService scheduledExecutorService,
Runnable runnable,
long millisecondsInTheFutureToSchedule)
Schedules runnable the specified millisecondsInTheFutureToSchedule
using scheduledExecutorService.
|
static final Clock SYSTEM
long currentTimeMillis()
void schedule(ScheduledExecutorService scheduledExecutorService, Runnable runnable, long millisecondsInTheFutureToSchedule)
scheduledExecutorService - the ScheduledExecutorService to submit the runnable torunnable - the runnable to execute on a schedulemillisecondsInTheFutureToSchedule - the schedule of milliseconds in the future,
approximating when the runnable should run.Copyright © 2020 HERE Europe B.V. All Rights Reserved.