Interface TimerServiceSupplier

All Known Implementing Classes:
PriorityHeapTimerServiceSupplier, WheelTimerServiceSupplier
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 TimerServiceSupplier
Supplier of TimerService implementations to be used by the ConsensusModule.
  • Method Details

    • newInstance

      TimerService newInstance(TimeUnit timeUnit, TimerService.TimerHandler timerHandler)
      New instance of the TimerService.
      Parameters:
      timeUnit - units to be used by the underlying timer service.
      timerHandler - that must be invoked for each expired timer.
      Returns:
      timer service instance ready for immediate usage.