Interface TimerFunction

All Known Subinterfaces:
Timer
All Known Implementing Classes:
AbstractTimer, AgentTimer
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 interface TimerFunction
Function to invoke at a scheduled time. Use Schedule.setTimer(long, TimerFunction) to schedule a TimerFunction for future execution.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes scheduled logic when this timer fires.
  • Method Details

    • runTimer

      void runTimer()
      Executes scheduled logic when this timer fires.