| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static long | |
| private static final Object | |
| public static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static long | |
| public static void | |
| public static void | |
| public static long | |
| public static void | |
| public static void | |
| public static void | |
| public static void |
| currentTime | back to summary |
|---|---|
| private static long currentTime | |
| timeUpdateMonitor | back to summary |
|---|---|
| private static final Object timeUpdateMonitor | |
| useActualTime | back to summary |
|---|---|
| public static final boolean useActualTime | |
| TimeServices | back to summary |
|---|---|
| public TimeServices() | |
| currentTimeMillis | back to summary |
|---|---|
| public static long currentTimeMillis() | |
| moveTimeForward | back to summary |
|---|---|
| public static void moveTimeForward(long timeDeltaNsec) throws InterruptedException | |
| moveTimeForwardMsec | back to summary |
|---|---|
| public static void moveTimeForwardMsec(long timeDeltaMsec) throws InterruptedException | |
| nanoTime | back to summary |
|---|---|
| public static long nanoTime() | |
| setCurrentTime | back to summary |
|---|---|
| public static void setCurrentTime(long newCurrentTime) throws InterruptedException | |
| sleepMsecs | back to summary |
|---|---|
| public static void sleepMsecs(long sleepTimeMsec) | |
| sleepNanos | back to summary |
|---|---|
| public static void sleepNanos(long sleepTimeNsec) | |
| waitUntilTime | back to summary |
|---|---|
| public static void waitUntilTime(long timeToWakeAt) throws InterruptedException | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ScheduledThreadPoolExecutor | |
| private static TimeServices. | |
| pack-priv final TimeServices. | |
| pack-priv final PriorityBlockingQueue |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| actualExecutor | back to summary |
|---|---|
| private final ScheduledThreadPoolExecutor actualExecutor | |
| compareRunnableTaskEntryByStartTime | back to summary |
|---|---|
| private static TimeServices. | |
| internalExecutorThread | back to summary |
|---|---|
| pack-priv final TimeServices. | |
| taskEntries | back to summary |
|---|---|
| pack-priv final PriorityBlockingQueue<TimeServices. | |
| ScheduledExecutor | back to summary |
|---|---|
| pack-priv ScheduledExecutor() | |
| scheduleAtFixedRate | back to summary |
|---|---|
| public void scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) | |
| shutdown | back to summary |
|---|---|
| public void shutdown() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(TimeServices.
the first object to be compared. r1,the second object to be compared. r2Implements java. |
| CompareRunnableTaskEntryByStartTime | back to summary |
|---|---|
| pack-priv CompareRunnableTaskEntryByStartTime() | |
| compare | back to summary |
|---|---|
| public int compare(TimeServices. Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv volatile boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides java. Implements java. |
| pack-priv void |
| doRun | back to summary |
|---|---|
| pack-priv volatile boolean doRun | |
| MyExecutorThread | back to summary |
|---|---|
| private MyExecutorThread() | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a | |
| terminate | back to summary |
|---|---|
| pack-priv void terminate() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Runnable | |
| pack-priv long | |
| pack-priv boolean | |
| pack-priv long | |
| pack-priv long | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Runnable | |
| public long | |
| public void | |
| pack-priv boolean |
| command | back to summary |
|---|---|
| pack-priv Runnable command | |
| executionCount | back to summary |
|---|---|
| pack-priv long executionCount | |
| fixedRate | back to summary |
|---|---|
| pack-priv boolean fixedRate | |
| initialStartTime | back to summary |
|---|---|
| pack-priv long initialStartTime | |
| period | back to summary |
|---|---|
| pack-priv long period | |
| startTime | back to summary |
|---|---|
| pack-priv long startTime | |
| RunnableTaskEntry | back to summary |
|---|---|
| pack-priv RunnableTaskEntry(Runnable command, long startTimeNsec, long periodNsec, boolean fixedRate) | |
| getCommand | back to summary |
|---|---|
| public Runnable getCommand() | |
| getStartTime | back to summary |
|---|---|
| public long getStartTime() | |
| setNewStartTime | back to summary |
|---|---|
| public void setNewStartTime(long timeNow) | |
| shouldReschedule | back to summary |
|---|---|
| pack-priv boolean shouldReschedule() | |