This component demonstrates how to send messages in scheduling mode. When scheduling is enabled, the component sends the configured message, 'poll number' of times every 'poll interval'.
Changes made in the component
When scheduling starts, a TimerScheduler and a TimerScheduledJob are created. The TimerScheduledJob which handles sending the messages, 'poll number' of times is added to the Scheduler which keeps track of the poll interval.
The code snippet is shown below:
- The UI of the component is handled by the package com.fiorano.edbc.service.editors and the scheduling configuration is saved using the class com.fiorano.edbc.service.model.SchedulerConfiguration.