public class SchedulerThreadPools extends Object
Schedulers provided by this implementation of SchedulerService use a shared single-threaded
ScheduledExecutorService for scheduling work. When a scheduled tasks is fired, they are executed using the
Scheduler's own executor.| Constructor and Description |
|---|
SchedulerThreadPools(String name,
org.mule.runtime.api.scheduler.SchedulerPoolsConfig threadPoolsConfig) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildReportString() |
org.mule.runtime.api.scheduler.Scheduler |
createCpuIntensiveScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout) |
org.mule.runtime.api.scheduler.Scheduler |
createCpuLightScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int parallelTasksEstimate,
Supplier<Long> stopTimeout) |
org.mule.runtime.api.scheduler.Scheduler |
createCustomScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout) |
org.mule.runtime.api.scheduler.Scheduler |
createCustomScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout,
int queueSize) |
org.mule.runtime.api.scheduler.Scheduler |
createIoScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout) |
List<org.mule.runtime.api.scheduler.Scheduler> |
getSchedulers() |
void |
start() |
void |
stop() |
protected void |
waitForExecutorTermination(long startMillis,
ExecutorService executor,
String executorLabel) |
public SchedulerThreadPools(String name, org.mule.runtime.api.scheduler.SchedulerPoolsConfig threadPoolsConfig)
public void start()
throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException,
InterruptedException
org.mule.runtime.api.exception.MuleExceptionInterruptedExceptionprotected void waitForExecutorTermination(long startMillis,
ExecutorService executor,
String executorLabel)
throws InterruptedException
InterruptedExceptionpublic org.mule.runtime.api.scheduler.Scheduler createCpuLightScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int parallelTasksEstimate,
Supplier<Long> stopTimeout)
public org.mule.runtime.api.scheduler.Scheduler createIoScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout)
public org.mule.runtime.api.scheduler.Scheduler createCpuIntensiveScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout)
public org.mule.runtime.api.scheduler.Scheduler createCustomScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout)
public org.mule.runtime.api.scheduler.Scheduler createCustomScheduler(org.mule.runtime.api.scheduler.SchedulerConfig config,
int workers,
Supplier<Long> stopTimeout,
int queueSize)
public List<org.mule.runtime.api.scheduler.Scheduler> getSchedulers()
public String buildReportString()
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.