public class ClocksNotSynchronizedException extends RuntimeException
| Constructor and Description |
|---|
ClocksNotSynchronizedException() |
ClocksNotSynchronizedException(String msg) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertBefore(UUID serviceId1,
UUID serviceId2,
long t1,
long t2,
long maxSkew)
Assert that
t1 LT t2, where t1 and
t2 are timestamps obtain such that this relation will be
true if the clocks on the nodes are synchronized. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ClocksNotSynchronizedException()
public ClocksNotSynchronizedException(String msg)
public static void assertBefore(UUID serviceId1, UUID serviceId2, long t1, long t2, long maxSkew) throws ClocksNotSynchronizedException
t1 LT t2, where t1 and
t2 are timestamps obtain such that this relation will be
true if the clocks on the nodes are synchronized.
Note: Clock synchronization errors can arise across nodes if the nodes are not using a common network time source.
Note: Synchronization errors can arise on a single node if the clock is changed on that node - specifically if the clock is move backwards to before the most recent commit timestamp. For example, if the timezone is changed.
serviceId1 - The service that reported the timestamp t1.serviceId2 - The service that reported the timestamp t2.t1 - A timestamp from one service.t2 - A timestamp from the another service.maxSkew - The maximum allowed clock skew (typically on the order of
seconds).ClocksNotSynchronizedExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.