public static interface ExponentialBackOff.NanoClock
Nano clock which can be used to measure elapsed time in nanoseconds.
<p>
The default system implementation can be accessed at SYSTEM. Alternative implementations
may be used for testing.
</p>
| Modifier and Type | Field and Description |
|---|---|
static ExponentialBackOff.NanoClock |
SYSTEM
Provides the default System implementation of a nano clock by using
System.nanoTime(). |
| Modifier and Type | Method and Description |
|---|---|
long |
nanoTime()
Returns the current value of the most precise available system timer, in nanoseconds for use to
measure elapsed time, to match the behavior of
System.nanoTime(). |
static final ExponentialBackOff.NanoClock SYSTEM
Provides the default System implementation of a nano clock by using System.nanoTime().