Package io.servicetalk.concurrent
Interface TimeSource
- All Known Subinterfaces:
EventLoopAwareNettyIoExecutor
,Executor
,Executor
,IoExecutor
,NettyIoExecutor
- All Known Implementing Classes:
DelegatingExecutor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A source of time that can be represented as a
long
.-
Method Summary
Modifier and TypeMethodDescriptionlong
currentTime
(TimeUnit unit) Returns the internal clock time in the specifiedunit
.
-
Method Details
-
currentTime
Returns the internal clock time in the specifiedunit
.- Parameters:
unit
- the time unit to calculate- Returns:
- the internal clock time in the specified
unit
.
-