@Alias(value="fixed-frequency") public final class FixedFrequencyScheduler extends PeriodicScheduler implements org.mule.runtime.api.source.FixedFrequencySchedulerConfiguration
PeriodicScheduler for a fixed-frequency job.| Constructor and Description |
|---|
FixedFrequencyScheduler() |
| Modifier and Type | Method and Description |
|---|---|
ScheduledFuture<?> |
doSchedule(org.mule.runtime.api.scheduler.Scheduler executor,
Runnable job)
Template method to delegate the scheduling of the job.
|
long |
getFrequency() |
long |
getStartDelay() |
TimeUnit |
getTimeUnit() |
void |
setFrequency(long frequency) |
void |
setStartDelay(long startDelay) |
void |
setTimeUnit(TimeUnit timeUnit) |
schedulepublic ScheduledFuture<?> doSchedule(org.mule.runtime.api.scheduler.Scheduler executor, Runnable job)
PeriodicSchedulerdoSchedule in class PeriodicSchedulerexecutor - the corresponding Scheduler instance.job - The Runnable job that has to be executed.public void setTimeUnit(TimeUnit timeUnit)
public void setFrequency(long frequency)
public void setStartDelay(long startDelay)
public TimeUnit getTimeUnit()
getTimeUnit in interface org.mule.runtime.api.source.FixedFrequencySchedulerConfigurationpublic long getFrequency()
getFrequency in interface org.mule.runtime.api.source.FixedFrequencySchedulerConfigurationpublic long getStartDelay()
getStartDelay in interface org.mule.runtime.api.source.FixedFrequencySchedulerConfigurationCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.