Package io.grpc.internal
Interface TimeProvider
-
public interface TimeProvider
Time source representing the current system time in nanos. Used to inject a fake clock into unit tests.
-
-
Field Summary
Fields Modifier and Type Field Description static TimeProvider
SYSTEM_TIME_PROVIDER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
currentTimeNanos()
Returns the current nano time.
-
-
-
Field Detail
-
SYSTEM_TIME_PROVIDER
static final TimeProvider SYSTEM_TIME_PROVIDER
-
-