org.apache.camel.builder
Class ThreadPoolProfileBuilder
java.lang.Object
org.apache.camel.builder.ThreadPoolProfileBuilder
public class ThreadPoolProfileBuilder
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadPoolProfileBuilder
public ThreadPoolProfileBuilder(String id)
ThreadPoolProfileBuilder
public ThreadPoolProfileBuilder(String id,
ThreadPoolProfile origProfile)
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)
rejectedPolicy
public ThreadPoolProfileBuilder rejectedPolicy(ThreadPoolRejectedPolicy rejectedPolicy)
build
public ThreadPoolProfile build()
- Builds the new thread pool
- Returns:
- the created thread pool
- Throws:
Exception
- is thrown if error building the thread pool
Apache CAMEL