public class ThreadPoolProfileBuilder extends Object
ThreadPoolProfile
.
Use the build()
method when done setting up the profile.Constructor and Description |
---|
ThreadPoolProfileBuilder(String id) |
ThreadPoolProfileBuilder(String id,
org.apache.camel.spi.ThreadPoolProfile origProfile) |
Modifier and Type | Method and Description |
---|---|
ThreadPoolProfileBuilder |
allowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut) |
org.apache.camel.spi.ThreadPoolProfile |
build()
Builds the thread pool profile
|
ThreadPoolProfileBuilder |
defaultProfile(Boolean defaultProfile) |
ThreadPoolProfileBuilder |
keepAliveTime(Long keepAliveTime) |
ThreadPoolProfileBuilder |
keepAliveTime(Long keepAliveTime,
TimeUnit timeUnit) |
ThreadPoolProfileBuilder |
maxPoolSize(Integer maxPoolSize) |
ThreadPoolProfileBuilder |
maxQueueSize(Integer maxQueueSize) |
ThreadPoolProfileBuilder |
poolSize(Integer poolSize) |
ThreadPoolProfileBuilder |
rejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) |
public ThreadPoolProfileBuilder(String id)
public ThreadPoolProfileBuilder(String id, org.apache.camel.spi.ThreadPoolProfile origProfile)
public ThreadPoolProfileBuilder defaultProfile(Boolean defaultProfile)
public ThreadPoolProfileBuilder poolSize(Integer poolSize)
public ThreadPoolProfileBuilder maxPoolSize(Integer maxPoolSize)
public ThreadPoolProfileBuilder keepAliveTime(Long keepAliveTime, TimeUnit timeUnit)
public ThreadPoolProfileBuilder keepAliveTime(Long keepAliveTime)
public ThreadPoolProfileBuilder maxQueueSize(Integer maxQueueSize)
public ThreadPoolProfileBuilder allowCoreThreadTimeOut(Boolean allowCoreThreadTimeOut)
public ThreadPoolProfileBuilder rejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
public org.apache.camel.spi.ThreadPoolProfile build()
Apache Camel