Doddle does not know how to instantiate this class - it has no idea how to get an instance of the CustomerService class. Let's solve that by creating a simple resolver:
This is just a simple example. You would normally use a dependency injection container such as a Guice or Spring IoC to get instances of your classes!
Great, Doddle now knows how to create the objects containing the task methods!
Scheduling
The scheduler is used to find jobs that are ready to be processed.
Parameter
Description
Input
interval
How often to check for jobs that are ready to be processed.
Valid units are ms (milliseconds), s (seconds), m (minutes), h (hours)
delay
The time to wait before checking after the scheduler is started.
Valid units are ms (milliseconds), s (seconds), m (minutes), h (hours)