This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Record - task : TimerConfiguration

Configurations related to a timer, which are used to define the behavior of a timer when initializing the task:Listener.

Closed record


  • intervalInMillis int
  • Timer interval (in milliseconds), which triggers the onTrigger resource

  • initialDelayInMillis int
  • Delay (in milliseconds) after which the timer will run

  • noOfRecurrences int
  • Number of times to trigger the task after which the task stops running