org.mule.transport.polling.schedule
Class FixedFrequencySchedulerFactory<T extends Runnable>

java.lang.Object
  extended by org.mule.api.schedule.SchedulerFactory<T>
      extended by org.mule.transport.polling.schedule.FixedFrequencySchedulerFactory<T>
All Implemented Interfaces:
MuleContextAware

public class FixedFrequencySchedulerFactory<T extends Runnable>
extends SchedulerFactory<T>

Implementation of SchedulerFactory for a FixedFrequencyScheduler.

Since:
3.5.0

Field Summary
 
Fields inherited from class org.mule.api.schedule.SchedulerFactory
context, logger
 
Constructor Summary
FixedFrequencySchedulerFactory()
           
 
Method Summary
protected  Scheduler doCreate(String name, T job)
           Template method to delegate the creation of the Scheduler.
 void setFrequency(long frequency)
           
 void setStartDelay(long startDelay)
           
 void setTimeUnit(TimeUnit timeUnit)
           
 
Methods inherited from class org.mule.api.schedule.SchedulerFactory
create, setMuleContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedFrequencySchedulerFactory

public FixedFrequencySchedulerFactory()
Method Detail

doCreate

protected Scheduler doCreate(String name,
                             T job)
Description copied from class: SchedulerFactory

Template method to delegate the creation of the Scheduler. This method is thought to create an instance of a Scheduler. It should not Start/Stop it.

Specified by:
doCreate in class SchedulerFactory<T extends Runnable>
job - The Job the Scheduler is going to execute
Returns:
The Scheduler instance

setTimeUnit

public void setTimeUnit(TimeUnit timeUnit)

setFrequency

public void setFrequency(long frequency)

setStartDelay

public void setStartDelay(long startDelay)


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.