Documentation for a newer release is available. View Latest

The Scheduling Helper

This can be thought of as the engine that receives the scheduled commands. These commands represent the actual tasks to be executed. It waits for messages from the scheduler, which, when the time arrives as specified by the cron expression, passes the command to the SchedulingHelper. The SchedulingHelper is essentially responsible for executing the tasks that the scheduler has queued up.

Interface

The SchedulingHelper has two methods:

1. execute(String, Command): Run a task

This is what the scheduler will call at the right time. The "String" is the triggerIdentifier (a unique identifier) from the JobSpecification, and the Command is the triggerCommand from the same specification.

2. supports(Command): Does this SchedulingHelper support this command?

When defining multiple SchedulingHelpers, the scheduler needs to know which SchedulingHelper can support which command.