Package org.apache.camel.builder
Class ThreadPoolProfileBuilder
- java.lang.Object
-
- org.apache.camel.builder.ThreadPoolProfileBuilder
-
public class ThreadPoolProfileBuilder extends Object
Builder to buildThreadPoolProfile. Use thebuild()method when done setting up the profile.
-
-
Constructor Summary
Constructors Constructor Description ThreadPoolProfileBuilder(String id)ThreadPoolProfileBuilder(String id, org.apache.camel.spi.ThreadPoolProfile origProfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreadPoolProfileBuilderallowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)org.apache.camel.spi.ThreadPoolProfilebuild()Builds the thread pool profileThreadPoolProfileBuilderdefaultProfile(Boolean defaultProfile)ThreadPoolProfileBuilderkeepAliveTime(Long keepAliveTime)ThreadPoolProfileBuilderkeepAliveTime(Long keepAliveTime, TimeUnit timeUnit)ThreadPoolProfileBuildermaxPoolSize(Integer maxPoolSize)ThreadPoolProfileBuildermaxQueueSize(Integer maxQueueSize)ThreadPoolProfileBuilderpoolSize(Integer poolSize)ThreadPoolProfileBuilderrejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
-
-
-
Constructor Detail
-
ThreadPoolProfileBuilder
public ThreadPoolProfileBuilder(String id)
-
ThreadPoolProfileBuilder
public ThreadPoolProfileBuilder(String id, org.apache.camel.spi.ThreadPoolProfile origProfile)
-
-
Method Detail
-
defaultProfile
public ThreadPoolProfileBuilder defaultProfile(Boolean defaultProfile)
-
poolSize
public ThreadPoolProfileBuilder poolSize(Integer poolSize)
-
maxPoolSize
public ThreadPoolProfileBuilder maxPoolSize(Integer maxPoolSize)
-
keepAliveTime
public ThreadPoolProfileBuilder keepAliveTime(Long keepAliveTime, TimeUnit timeUnit)
-
keepAliveTime
public ThreadPoolProfileBuilder keepAliveTime(Long keepAliveTime)
-
maxQueueSize
public ThreadPoolProfileBuilder maxQueueSize(Integer maxQueueSize)
-
allowCoreThreadTimeOut
public ThreadPoolProfileBuilder allowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
-
rejectedPolicy
public ThreadPoolProfileBuilder rejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
-
build
public org.apache.camel.spi.ThreadPoolProfile build()
Builds the thread pool profile- Returns:
- the thread pool profile
-
-