public abstract static class Deadline.Ticker
extends java.lang.Object
DO NOT use custom Deadline.Ticker
implementations in production, because deadlines created
with custom tickers are incompatible with those created with the system ticker. Always use
the system ticker
whenever 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
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.
Constructor | Description |
---|---|
Ticker() |
Modifier and Type | Method | Description |
---|---|---|
abstract long |
nanoTime() |
Returns the number of nanoseconds since this source's epoch.
|