| Interface | Description |
|---|---|
| TimeSource |
A time source is an abstraction of system time away from the local system clock.
|
| Class | Description |
|---|---|
| NTPTimeSource |
A
TimeSource that utilize Network Time Protocol to determine the system clock offsetInstances should be obtained via NTPTimeSource.getInstance() or TimeSourceProvider; one instance may be
used per machineSpecifically, the implementation uses Apache Commons Net (already a dependency in Spark) to query a NTP server. |
| SystemClockTimeSource |
A
TimeSource implementation that is identical to calling System.currentTimeMillis() |
| TestTimeSource |
Created by Alex on 26/06/2016.
|
| TimeSourceProvider |
TimeSourceProvider: used to get a TimeSource via a static method.
Defaults to the Network Time Protocol implementation NTPTimeSource, but can be switched to other implementations
via the TimeSourceProvider.TIMESOURCE_CLASSNAME_PROPERTY system property. |