Kanzi  3.9.5
Java API
MainLoopScheduler.TimerTask Interface Reference

A task that can be scheduled for one-time or repeated execution by MainLoopScheduler. More...

Public Member Functions

void handle (Duration elapsedDuration, int repeatCount)
 Called when the timer expires and the task gets executed. More...
 

Detailed Description

A task that can be scheduled for one-time or repeated execution by MainLoopScheduler.

Member Function Documentation

◆ handle()

void handle ( Duration  elapsedDuration,
int  repeatCount 
)

Called when the timer expires and the task gets executed.

Parameters
elapsedDurationThe time since the last invocation or creation, rounded down to amultiple of the interval of the timer.
repeatCountThe number of elapsed intervals since the last invocation.