Package org.apache.camel.builder
Class ThreadPoolBuilder
java.lang.Object
org.apache.camel.builder.ThreadPoolBuilder
A builder to create thread pools.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the new thread poolBuilds the new thread poolBuilds the new thread poolBuilds the new scheduled thread poolbuildScheduled
(Object source, String name) Builds the new scheduled thread poolbuildScheduled
(String name) Builds the new scheduled thread poolkeepAliveTime
(long keepAliveTime) keepAliveTime
(long keepAliveTime, TimeUnit timeUnit) maxPoolSize
(int maxPoolSize) maxQueueSize
(int maxQueueSize) poolSize
(int poolSize) rejectedPolicy
(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy)
-
Constructor Details
-
ThreadPoolBuilder
public ThreadPoolBuilder(org.apache.camel.CamelContext context)
-
-
Method Details
-
poolSize
-
maxPoolSize
-
keepAliveTime
-
keepAliveTime
-
maxQueueSize
-
rejectedPolicy
public ThreadPoolBuilder rejectedPolicy(org.apache.camel.util.concurrent.ThreadPoolRejectedPolicy rejectedPolicy) -
build
Builds the new thread pool- Returns:
- the created thread pool
- Throws:
Exception
- is thrown if error building the thread pool
-
build
Builds the new thread pool- Parameters:
name
- name which is appended to the thread name- Returns:
- the created thread pool
- Throws:
Exception
- is thrown if error building the thread pool
-
build
Builds the new thread pool- Parameters:
source
- the source object, usually it should be this passed in as parametername
- name which is appended to the thread name- Returns:
- the created thread pool
- Throws:
Exception
- is thrown if error building the thread pool
-
buildScheduled
Builds the new scheduled thread pool- Returns:
- the created scheduled thread pool
- Throws:
Exception
- is thrown if error building the scheduled thread pool
-
buildScheduled
Builds the new scheduled thread pool- Parameters:
name
- name which is appended to the thread name- Returns:
- the created scheduled thread pool
- Throws:
Exception
- is thrown if error building the scheduled thread pool
-
buildScheduled
Builds the new scheduled thread pool- Parameters:
source
- the source object, usually it should be this passed in as parametername
- name which is appended to the thread name- Returns:
- the created scheduled thread pool
- Throws:
Exception
- is thrown if error building the scheduled thread pool
-