Package org.agrona
Interface DeadlineTimerWheel.TimerHandler
-
- Enclosing class:
- DeadlineTimerWheel
- 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 static interface DeadlineTimerWheel.TimerHandler
Handler for processing expired timers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onTimerExpiry(java.util.concurrent.TimeUnit timeUnit, long now, long timerId)
Called when the deadline has expired.
-
-
-
Method Detail
-
onTimerExpiry
boolean onTimerExpiry(java.util.concurrent.TimeUnit timeUnit, long now, long timerId)
Called when the deadline has expired.- Parameters:
timeUnit
- for the time.now
- for the expired timer.timerId
- for the expired timer.- Returns:
- true to consume the timer, or false to keep timer active and abort further polling.
-
-