| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | SlewClock.TimeProvider
Defines how the |
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicLong | |
| private static final long | |
| private static final Logger | |
| private static final VicariousThreadLocal | |
| private static final SlewClock. | |
| private static final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static long | Returns: the amount of milliseconds the thread is behind the wall clock, 0 if none.The method will check how much behind is the current thread compared to the wall clock since the last |
| private static long | |
| pack-priv static boolean | Returns: true if the thread is being marked as catching up on timeVerifies whether the current thread is currently catching up on time. |
| pack-priv static void | |
| private static long | |
| pack-priv static long | Returns: The difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.Will return the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. |
| CURRENT | back to summary |
|---|---|
| private static final AtomicLong CURRENT | |
| DRIFT_MAXIMAL | back to summary |
|---|---|
| private static final long DRIFT_MAXIMAL | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| OFFSET | back to summary |
|---|---|
| private static final VicariousThreadLocal<Long> OFFSET | |
| PROVIDER | back to summary |
|---|---|
| private static final SlewClock. | |
| SLEEP_BASE | back to summary |
|---|---|
| private static final int SLEEP_BASE | |
| SLEEP_MAXIMAL | back to summary |
|---|---|
| private static final long SLEEP_MAXIMAL | |
| SlewClock | back to summary |
|---|---|
| private SlewClock() | |
| behind | back to summary |
|---|---|
| pack-priv static long behind() The method will check how much behind is the current thread compared to the wall clock since the last
| |
| getCurrentTime | back to summary |
|---|---|
| private static long getCurrentTime() | |
| isThreadCatchingUp | back to summary |
|---|---|
| pack-priv static boolean isThreadCatchingUp() Verifies whether the current thread is currently catching up on time.
To be meaning full, this method has to be called after the thread has called
| |
| realignWithTimeProvider | back to summary |
|---|---|
| pack-priv static void realignWithTimeProvider()
Deprecated
For testing purposes, you probably never want to use this. This method will resync, basically resetting any on going slewing, its internal clock tracking with whatever value the provider seeds it with.
| |
| sleepTime | back to summary |
|---|---|
| private static long sleepTime(final long current, final long previous) | |
| timeMillis | back to summary |
|---|---|
| pack-priv static long timeMillis() Will return the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. But without ever going back. If a movement back in time is detected, the method will slew until time caught up
| |
SlewClock utility class will get to the wall clock
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC.
|
| currentTimeMillis | back to summary |
|---|---|
public long currentTimeMillis()
| |