@Alias(value="cron") public final class CronScheduler extends PeriodicScheduler implements CronSchedulerConfiguration
Constructor and Description |
---|
CronScheduler() |
Modifier and Type | Method and Description |
---|---|
protected ScheduledFuture<?> |
doSchedule(Scheduler executor,
Runnable job)
Template method to delegate the scheduling of the job.
|
String |
getExpression() |
String |
getTimeZone() |
protected TimeZone |
resolveTimeZone(String name) |
void |
setExpression(String expression) |
void |
setTimeZone(String timeZone) |
schedule
protected ScheduledFuture<?> doSchedule(Scheduler executor, Runnable job)
PeriodicScheduler
doSchedule
in class PeriodicScheduler
executor
- the corresponding Scheduler
instance.job
- The Runnable
job that has to be executed.public void setExpression(String expression)
public void setTimeZone(String timeZone)
public String getExpression()
getExpression
in interface CronSchedulerConfiguration
public String getTimeZone()
getTimeZone
in interface CronSchedulerConfiguration
java.util.TimeZone
for the format and
possible values of the timeZone ID.Copyright © 2018. All rights reserved.