|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISchedulingService
Service that supports periodic execution of jobs, adding, removing and getting their name as list.
Field Summary | |
---|---|
static String |
BEAN_NAME
|
Method Summary | |
---|---|
String |
addScheduledJob(int interval,
IScheduledJob job)
Schedule a job for periodic execution. |
String |
addScheduledJobAfterDelay(int interval,
IScheduledJob job,
int delay)
Schedule a job for periodic execution which will start after the specifed delay. |
String |
addScheduledOnceJob(Date date,
IScheduledJob job)
Schedule a job for single execution at a given date. |
String |
addScheduledOnceJob(long timeDelta,
IScheduledJob job)
Schedule a job for single execution in the future. |
List<String> |
getScheduledJobNames()
Return names of scheduled jobs. |
void |
pauseScheduledJob(String name)
Pauses the trigger which initiates job execution. |
void |
removeScheduledJob(String name)
Stop executing a previously scheduled job. |
void |
resumeScheduledJob(String name)
Resumes the trigger which initiates job execution. |
Field Detail |
---|
static final String BEAN_NAME
Method Detail |
---|
String addScheduledJob(int interval, IScheduledJob job)
interval
- time in milliseconds between two notifications of the jobjob
- the job to trigger periodically
String addScheduledOnceJob(long timeDelta, IScheduledJob job)
timeDelta
- time delta in milliseconds from the current datejob
- the job to trigger
String addScheduledOnceJob(Date date, IScheduledJob job)
date
- date when the job should be executedjob
- the job to trigger
String addScheduledJobAfterDelay(int interval, IScheduledJob job, int delay)
interval
- time in milliseconds between two notifications of the jobjob
- the job to trigger periodicallydelay
- time in milliseconds to pass before first execution.
void pauseScheduledJob(String name)
name
- name of the job to stopvoid resumeScheduledJob(String name)
name
- name of the job to stopvoid removeScheduledJob(String name)
name
- name of the job to stopList<String> getScheduledJobNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |