Package org.apache.camel.main
Class ThreadPoolConfigurationProperties
java.lang.Object
org.apache.camel.main.ThreadPoolConfigurationProperties
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.camel.spi.BootstrapCloseable
@Configurer(bootstrap=true,
extended=true)
public class ThreadPoolConfigurationProperties
extends Object
implements org.apache.camel.spi.BootstrapCloseable
Global configuration for thread pools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfig(String id, ThreadPoolProfileConfigurationProperties config) Adds a configuration for a specific thread pool profile (inherits default values)voidclose()end()org.apache.camel.util.concurrent.ThreadPoolRejectedPolicyvoidsetAllowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut) Sets default whether to allow core threads to timeoutvoidAdds a configuration for a specific thread pool profile (inherits default values)voidsetKeepAliveTime(Long keepAliveTime) Sets the default keep alive time for inactive threadsvoidsetMaxPoolSize(Integer maxPoolSize) Sets the default maximum pool sizevoidsetMaxQueueSize(Integer maxQueueSize) Sets the default maximum number of tasks in the work queue.voidsetPoolSize(Integer poolSize) Sets the default core pool size (threads to keep minimum in pool)voidsetRejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) Sets the default handler for tasks which cannot be executed by the thread pool.voidsetTimeUnit(TimeUnit timeUnit) Sets the default time unit used for keep alive time
-
Constructor Details
-
ThreadPoolConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getPoolSize
-
setPoolSize
Sets the default core pool size (threads to keep minimum in pool) -
getMaxPoolSize
-
setMaxPoolSize
Sets the default maximum pool size -
getKeepAliveTime
-
setKeepAliveTime
Sets the default keep alive time for inactive threads -
getTimeUnit
-
setTimeUnit
Sets the default time unit used for keep alive time -
getMaxQueueSize
-
setMaxQueueSize
Sets the default maximum number of tasks in the work queue. Use -1 or an unbounded queue -
getAllowCoreThreadTimeOut
-
setAllowCoreThreadTimeOut
Sets default whether to allow core threads to timeout -
getRejectedPolicy
public org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy getRejectedPolicy() -
setRejectedPolicy
public void setRejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) Sets the default handler for tasks which cannot be executed by the thread pool. -
getConfig
-
setConfig
Adds a configuration for a specific thread pool profile (inherits default values) -
addConfig
public ThreadPoolConfigurationProperties addConfig(String id, ThreadPoolProfileConfigurationProperties config) Adds a configuration for a specific thread pool profile (inherits default values)
-