Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option

Description

poolSize

A number to indicate the core pool size of the underlying Java ExecutorService that is actually doing all the heavy lifting of handling Async tasks and correlate replies etc. By default a pool size of 10 is used.

maxPoolSize

A number to indicate the maximum pool size of the of the underlying Java ExecutorService

keepAliveTime

A number to indicate how long to keep inactive threads alive

timeUnit

Time unit for the keepAliveTime option

maxQueueSize

A number to indicate the maximum number of tasks to keep in the worker queue for the underlying Java ExecutorService

threadName

To use a custom thread name pattern. See Threading Model for more details.

rejectedPolicy

How to handle rejected tasks. Can be either Abort, CallerRuns, Discard, or DiscardOldest. See below for more details.

callerRunsWhenRejected

A boolean to more easily configure between the most common rejection policies. This option is default enabled. true is the same as rejectedPolicy=CallerRuns, and false is the same as rejectedPolicy=Abort.

executorService

You can provide a custom ExecutorService to use, for instance in a managed environment a J2EE container could provide this service so all thread pools is controlled by the J2EE container.

waitForTaskToComplete

@deprecated (removed in Camel 2.4): Option to specify if the caller should wait for the async task to be complete or not before continuing. The following 3 options is supported: Always, Never or IfReplyExpected. The first two options is self explained. The last will only wait if the message is Request Reply based. The default option is IfReplyExpected.

...