Package io.grpc.internal
Interface TimeProvider
-
public interface TimeProviderTime 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 TimeProviderSYSTEM_TIME_PROVIDER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcurrentTimeNanos()Returns the current nano time.
-
-
-
Field Detail
-
SYSTEM_TIME_PROVIDER
static final TimeProvider SYSTEM_TIME_PROVIDER
-
-