Package org.agrona

Interface DeadlineTimerWheel.TimerConsumer

  • 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.TimerConsumer
    Consumer of timer entries as deadline to timerId.
    See Also:
    DeadlineTimerWheel.forEach(TimerConsumer)
    • Method Detail

      • accept

        void accept​(long deadline,
                    long timerId)
        Called for each timer in the Timer Wheel.
        Parameters:
        deadline - of the timer.
        timerId - of the timer.