public class CronScheduler extends PollScheduler<PollingReceiverWorker> implements MuleContextAware
Cron Scheduler implemented with Quartz.
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
static String |
POLL_CRON_SCHEDULER_JOB |
static String |
QUARTZ_INSTANCE_NAME_PROPERTY |
static String |
THREAD_POLL_CLASS |
static String |
THREAD_POLL_CLASS_PROPERTY |
static String |
THREAD_POOL_COUNT_PROPERTY |
job, namePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
CronScheduler(String name,
PollingReceiverWorker job,
String cronExpression,
TimeZone timeZone) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
String |
getCronExpression() |
TimeZone |
getTimeZone() |
void |
initialise() |
boolean |
isStarted() |
void |
schedule() |
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
getJob, getName, setNameprotected transient org.apache.commons.logging.Log logger
public static final String THREAD_POLL_CLASS_PROPERTY
public static final String THREAD_POLL_CLASS
public static final String THREAD_POOL_COUNT_PROPERTY
public static final String POLL_CRON_SCHEDULER_JOB
public static final String QUARTZ_INSTANCE_NAME_PROPERTY
public CronScheduler(String name, PollingReceiverWorker job, String cronExpression, TimeZone timeZone)
public void schedule()
throws Exception
public void dispose()
dispose in interface Disposablepublic void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void stop()
throws MuleException
stop in interface StoppableMuleExceptionpublic String getCronExpression()
public TimeZone getTimeZone()
TimeZone in which the cronExpression will be based.public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic boolean isStarted()
throws MuleException
MuleExceptionCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.