org.apache.camel.builder
Class ThreadPoolProfileBuilder

java.lang.Object
  extended by org.apache.camel.builder.ThreadPoolProfileBuilder

public class ThreadPoolProfileBuilder
extends Object


Constructor Summary
ThreadPoolProfileBuilder(String id)
           
ThreadPoolProfileBuilder(String id, ThreadPoolProfile origProfile)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPoolProfileBuilder

public ThreadPoolProfileBuilder(String id)

ThreadPoolProfileBuilder

public ThreadPoolProfileBuilder(String id,
                                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)

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