The Timer component is used to generate message exchanges when a timer fires.
URI Syntax: timer:timerName
Path parameters
Name | Description | Default | Type |
|---|---|---|---|
timerName (consumer) | (required) The timer name. | — | String |
Query parameters
Name | Description | Default | Type |
|---|---|---|---|
delay (consumer) | The number of milliseconds to wait before the first event is generated. Should not be used together with the time option. | 1000 | long |
period (consumer) | Generates periodic events at each period. Must be a zero or positive value. | 1000 | long |
In the snippet below, the URI shows a timer named mytimer, which is triggered every 30 seconds (30,000 milliseconds).
Then, a message is logged.

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more