public class ThreadPoolsConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CPU_INTENSIVE_PREFIX |
static String |
CPU_LIGHT_PREFIX |
static String |
IO_PREFIX |
static String |
PROP_PREFIX |
static String |
THREAD_POOL |
static String |
THREAD_POOL_KEEP_ALIVE |
static String |
THREAD_POOL_SIZE |
static String |
THREAD_POOL_SIZE_CORE |
static String |
THREAD_POOL_SIZE_MAX |
static String |
WORK_QUEUE |
static String |
WORK_QUEUE_SIZE |
| Modifier and Type | Method and Description |
|---|---|
Properties |
defaultQuartzProperties(String name) |
int |
getCpuIntensivePoolSize() |
int |
getCpuIntensiveQueueSize() |
int |
getCpuLightPoolSize() |
int |
getCpuLightQueueSize() |
long |
getGracefulShutdownTimeout() |
int |
getIoCorePoolSize() |
long |
getIoKeepAlive() |
int |
getIoMaxPoolSize() |
int |
getIoQueueSize() |
static ThreadPoolsConfig |
loadThreadPoolsConfig()
Loads the configuration from the
{mule.home}/conf/scheduler-pools.conf file. |
public static final String PROP_PREFIX
public static final String CPU_LIGHT_PREFIX
public static final String IO_PREFIX
public static final String CPU_INTENSIVE_PREFIX
public static final String THREAD_POOL
public static final String THREAD_POOL_SIZE
public static final String THREAD_POOL_SIZE_MAX
public static final String THREAD_POOL_SIZE_CORE
public static final String THREAD_POOL_KEEP_ALIVE
public static final String WORK_QUEUE
public static final String WORK_QUEUE_SIZE
public static ThreadPoolsConfig loadThreadPoolsConfig() throws org.mule.runtime.api.exception.MuleException
{mule.home}/conf/scheduler-pools.conf file.org.mule.runtime.api.exception.MuleException - for any trouble that happens while parsing the file.public long getGracefulShutdownTimeout()
public int getCpuLightPoolSize()
cpu_lite pool, even if they are idle.public int getCpuLightQueueSize()
cpu_lite tasks before they are executed.public int getIoCorePoolSize()
I/O pool.public int getIoMaxPoolSize()
I/O pool.public int getIoQueueSize()
I/O tasks before they are executed.public long getIoKeepAlive()
I/O pool is greater than getIoCorePoolSize(), this is the maximum
time (in milliseconds) that excess idle threads will wait for new tasks before terminating.public int getCpuIntensivePoolSize()
cpu_intensive pool, even if they are idle.public int getCpuIntensiveQueueSize()
cpu_intensive tasks before they are executed.public Properties defaultQuartzProperties(String name)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.