Package io.aeron.cluster
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.
Supplier of
TimerService implementations to be used by the ConsensusModule.-
Method Summary
Modifier and TypeMethodDescriptionnewInstance(TimeUnit timeUnit, TimerService.TimerHandler timerHandler) New instance of theTimerService.
-
Method Details
-
newInstance
New instance of theTimerService.- 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.
-