public interface Scheduler
SchedulerService
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_ERRORMESSAGE |
static String |
ITEM_LOGMESSAGE |
static String |
ITEM_SCHEDULER_CLASS |
static String |
ITEM_SCHEDULER_DEFINITION |
static String |
ITEM_SCHEDULER_ENABLED |
static String |
ITEM_SCHEDULER_NAME |
static String |
ITEM_SCHEDULER_STATUS |
Modifier and Type | Method and Description |
---|---|
ItemCollection |
run(ItemCollection job)
The run method is called by the ScheduelrService during a timer timeout
event.
|
static final String ITEM_SCHEDULER_NAME
static final String ITEM_SCHEDULER_ENABLED
static final String ITEM_SCHEDULER_STATUS
static final String ITEM_SCHEDULER_CLASS
static final String ITEM_SCHEDULER_DEFINITION
static final String ITEM_ERRORMESSAGE
static final String ITEM_LOGMESSAGE
ItemCollection run(ItemCollection job) throws SchedulerException
After the run method is finished the scheduelrService will save the scheduler configuration if a configuration object is returned. In case of an exception the Timer service will be canceled. To cancel the timer programmatically, an implementation must set the item _scheduler_enabled to 'false'.
To start or stop the timer service the methods start() and stop() from the SchedulerService can be called.
scheduler
- the scheduler configurationSchedulerException
Copyright © 2006–2022 Imixs Software Solutions GmbH. All rights reserved.