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,
ThreadPoolProfile origProfile) |
Modifier and Type | Method and Description |
---|---|
ThreadPoolProfile |
build()
Builds the new thread pool
|
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(ThreadPoolRejectedPolicy rejectedPolicy) |
public ThreadPoolProfileBuilder(String id)
public ThreadPoolProfileBuilder(String id, 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 rejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
public ThreadPoolProfile build()
Exception
- is thrown if error building the thread poolApache Camel