public interface ISchedulingService extends IScopeService
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME |
static String |
SCHEDULED_JOB
Scheduled job constant
|
static String |
SCHEDULING_SERVICE
Scheduling service constant
|
Modifier and Type | Method and Description |
---|---|
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 specified 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.
|
static final String BEAN_NAME
static final String SCHEDULING_SERVICE
static final String SCHEDULED_JOB
String addScheduledJob(int interval, IScheduledJob job)
interval
- time in milliseconds between two notifications of the jobjob
- the job to trigger periodicallyString addScheduledOnceJob(long timeDelta, IScheduledJob job)
timeDelta
- time delta in milliseconds from the current datejob
- the job to triggerString addScheduledOnceJob(Date date, IScheduledJob job)
date
- date when the job should be executedjob
- the job to triggerString 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 stopCopyright © 2005–2019 Red5. All rights reserved.