|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.transport.polling.schedule.PollScheduler<T> org.mule.transport.polling.schedule.FixedFrequencyScheduler<T>
public class FixedFrequencyScheduler<T extends Runnable>
Scheduler
that runs a task giving a fixed period of time.
Field Summary | |
---|---|
protected Log |
logger
|
Fields inherited from class org.mule.transport.polling.schedule.PollScheduler |
---|
job, name |
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Startable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Stoppable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
FixedFrequencyScheduler(String name,
long frequency,
long startDelay,
T job,
TimeUnit timeUnit)
|
Method Summary | |
---|---|
void |
dispose()
Checks that the executor is terminated and, if not, it terminates the
scheduling abruptly |
long |
getFrequency()
|
TimeUnit |
getTimeUnit()
|
void |
initialise()
Creates the executor that is going to be used to launch schedules |
void |
schedule()
Executes the the Scheduler task |
void |
start()
Starts the Scheduling of a Task. |
void |
stop()
Stops the Scheduling of a Task. |
Methods inherited from class org.mule.transport.polling.schedule.PollScheduler |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient Log logger
Constructor Detail |
---|
public FixedFrequencyScheduler(String name, long frequency, long startDelay, T job, TimeUnit timeUnit)
Method Detail |
---|
public void initialise() throws InitialisationException
Creates the executor
that is going to be used to launch schedules
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic void start() throws MuleException
Starts the Scheduling of a Task. Can be called several times, if the Scheduler
is already started or
if it is starting then the start request is omitted
MuleException
public void stop() throws MuleException
Stops the Scheduling of a Task. Can be called several times, if the Scheduler
is already stopped or
if it is stopping then the stop request is omitted
MuleException
public void schedule() throws MuleException
Executes the the Scheduler
task
MuleException
public void dispose()
Checks that the executor
is terminated and, if not, it terminates the
scheduling abruptly
public long getFrequency()
public TimeUnit getTimeUnit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |