- Enclosing class:
public abstract static class Deadline.Ticker extends java.lang.ObjectTime source representing nanoseconds since fixed but arbitrary point in time.
DO NOT use custom
Deadline.Tickerimplementations in production, because deadlines created with custom tickers are incompatible with those created with the system ticker. Always use the
system tickerwhenever you need to provide one in production code.
This is EXPERIMENTAL API and may subject to change. If you'd like it to be stabilized or have any feedback, please let us know.
In general implementations should be thread-safe, unless it's implemented and used in a localized environment (like unit tests) where you are sure the usages are synchronized.
Constructors Constructor Description
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
nanoTime()Returns the number of nanoseconds since this source's epoch.