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.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onTimerExpiry(TimeUnit timeUnit, long now, long timerId)
    Called when the deadline has expired.
  • Method Details

    • onTimerExpiry

      boolean onTimerExpiry(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.