public class PollEndpointJob extends AbstractJob implements Lifecycle, MuleContextAware
muleContext
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
PollEndpointJob(String inboundPollingEndpointName) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected void |
doExecute(org.quartz.JobExecutionContext context)
Execute the job.
|
protected MuleContext |
getMuleContext(org.quartz.JobExecutionContext jobExecutionContext) |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
execute
public PollEndpointJob(String inboundPollingEndpointName)
protected void doExecute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
AbstractJob
doExecute
in class AbstractJob
org.quartz.JobExecutionException
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void start() throws MuleException
start
in interface Startable
MuleException
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public void dispose()
Disposable
dispose
in interface Disposable
protected MuleContext getMuleContext(org.quartz.JobExecutionContext jobExecutionContext) throws org.quartz.JobExecutionException
getMuleContext
in class AbstractJob
org.quartz.JobExecutionException
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.