public enum DefaultTaskExecutorType extends Enum<DefaultTaskExecutorType>
DefaultJmsMessageListenerContainer
should use.Enum Constant and Description |
---|
SimpleAsync
Use a
SimpleAsyncTaskExecutor as the underlying task executor for consuming messages. |
ThreadPool
Use a
ThreadPoolTaskExecutor as the underlying task executor for consuming messages. |
Modifier and Type | Method and Description |
---|---|
static DefaultTaskExecutorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultTaskExecutorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultTaskExecutorType ThreadPool
ThreadPoolTaskExecutor
as the underlying task executor for consuming messages.
It will be configured with these attributes:
corePoolSize
= concurrentConsumersqueueSize
= 0 (to use the 'direct handoff' strategy for growing the thread pool,
see Javadoc of ThreadPoolExecutor
.maxPoolSize
, default value, i.e. no upper bound (as concurrency should be limited by
the endpoint's maxConcurrentConsumers, not by the thread pool).public static final DefaultTaskExecutorType SimpleAsync
SimpleAsyncTaskExecutor
as the underlying task executor for consuming messages.
(Legacy mode - default behaviour before version 2.10.3).public static DefaultTaskExecutorType[] values()
for (DefaultTaskExecutorType c : DefaultTaskExecutorType.values()) System.out.println(c);
public static DefaultTaskExecutorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullApache Camel