-
- 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. UseSchedule.setTimer(long, TimerFunction)
to schedule aTimerFunction
for future execution.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
runTimer()
Executes scheduled logic when this timer fires.
-