Interface TimerService.TimerHandler

Enclosing interface:
TimerService
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 TimerService.TimerHandler
Called from the TimerService.poll(long).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onTimerEvent(long correlationId)
    Invoked for each expired timer.
  • Method Details

    • onTimerEvent

      boolean onTimerEvent(long correlationId)
      Invoked for each expired timer.
      Parameters:
      correlationId - of the timer.
      Returns:
      true if the timer event was processed or false otherwise, i.e. the timer should be kept as non-expired.