The DSB provides a simple way to create recurrent tasks known has cronjobs by adding annotations on methods to call regularly. This comes from the fact that in a system, you generally have to periodically do things. The DSB ease this task creation from the developer point of view by introducing a simple Job annotation defined like
By putting this annotation on a method, it will be called periodically. The period is configured with the annotation parameters. For example:
The method iAmACronJob will be fired 20 seconds after the DSB startup, and will occurs every 20 seconds.
![]() | The parameter must not have any parameter and must be public. Return values are not handled. |
To use it, just put the annotation, as many other annotation based stuff, the DSB will introspect the kernel components and will create the jobs for you.