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.

@FunctionalInterface public interface TimeSource
A source of time that can be represented as a long.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the internal clock time in the specified unit.
  • Method Details

    • currentTime

      long currentTime(TimeUnit unit)
      Returns the internal clock time in the specified unit.
      Parameters:
      unit - the time unit to calculate
      Returns:
      the internal clock time in the specified unit.