public interface Ticker
Elapsed time for the schedules of the lease and window keepers: monotonic, unlike the wall clock the ids use, so a
clock step neither stalls nor rushes a renewal. Tests drive a manual one.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
SYSTEM
-
-
Method Details
-
nanoTime
long nanoTime()The current tick.- Returns:
- nanoseconds from an arbitrary origin
-
sleep
Waitsnanos.- Parameters:
nanos- how long to wait- Throws:
InterruptedException- if interrupted
-