@Configurer(bootstrap=true) public class ThreadPoolConfigurationProperties extends Object implements org.apache.camel.spi.BootstrapCloseable
| Constructor and Description |
|---|
ThreadPoolConfigurationProperties(MainConfigurationProperties parent) |
| Modifier and Type | Method and Description |
|---|---|
ThreadPoolConfigurationProperties |
addConfig(String id,
ThreadPoolProfileConfigurationProperties config)
Adds a configuration for a specific thread pool profile (inherits default values)
|
void |
close() |
MainConfigurationProperties |
end() |
Boolean |
getAllowCoreThreadTimeOut() |
Map<String,ThreadPoolProfileConfigurationProperties> |
getConfig() |
Long |
getKeepAliveTime() |
Integer |
getMaxPoolSize() |
Integer |
getMaxQueueSize() |
Integer |
getPoolSize() |
org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy |
getRejectedPolicy() |
TimeUnit |
getTimeUnit() |
void |
setAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
Sets default whether to allow core threads to timeout
|
void |
setConfig(Map<String,ThreadPoolProfileConfigurationProperties> config)
Adds a configuration for a specific thread pool profile (inherits default values)
|
void |
setKeepAliveTime(Long keepAliveTime)
Sets the default keep alive time for inactive threads
|
void |
setMaxPoolSize(Integer maxPoolSize)
Sets the default maximum pool size
|
void |
setMaxQueueSize(Integer maxQueueSize)
Sets the default maximum number of tasks in the work queue.
|
void |
setPoolSize(Integer poolSize)
Sets the default core pool size (threads to keep minimum in pool)
|
void |
setRejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
Sets the default handler for tasks which cannot be executed by the thread pool.
|
void |
setTimeUnit(TimeUnit timeUnit)
Sets the default time unit used for keep alive time
|
public ThreadPoolConfigurationProperties(MainConfigurationProperties parent)
public MainConfigurationProperties end()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic Integer getPoolSize()
public void setPoolSize(Integer poolSize)
public Integer getMaxPoolSize()
public void setMaxPoolSize(Integer maxPoolSize)
public Long getKeepAliveTime()
public void setKeepAliveTime(Long keepAliveTime)
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
public Integer getMaxQueueSize()
public void setMaxQueueSize(Integer maxQueueSize)
public Boolean getAllowCoreThreadTimeOut()
public void setAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
public org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy getRejectedPolicy()
public void setRejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
public Map<String,ThreadPoolProfileConfigurationProperties> getConfig()
public void setConfig(Map<String,ThreadPoolProfileConfigurationProperties> config)
public ThreadPoolConfigurationProperties addConfig(String id, ThreadPoolProfileConfigurationProperties config)
Apache Camel