RouteBox

RouteBox

Description: Camel Routebox component to encapsulate routes
Scheme: routebox
Syntax: routebox:routeboxName
Maven: org.apache.camel/camel-routebox/2.16.1
Name Kind Group Required Default Type Enum Description
routeboxName path common true java.lang.String Logical name for the routebox (eg like a queue name)
dispatchMap parameter common java.util.Map A string representing a key in the Camel Registry matching an object value of the type HashMap. The HashMap key should contain strings that can be matched against the value set for the exchange header ROUTE_DISPATCH_KEY. The HashMap value should contain inner route consumer URI's to which requests should be directed.
dispatchStrategy parameter common org.apache.camel.component.routebox.strategy.RouteboxDispatchStrategy To use a custom RouteboxDispatchStrategy which allows to use custom dispatching instead of the default.
forkContext parameter common true boolean Whether to fork and create a new inner CamelContext instead of reusing the same CamelContext.
innerProtocol parameter common direct java.lang.String direct
seda
The Protocol used internally by the Routebox component. Can be Direct or SEDA. The Routebox component currently offers protocols that are JVM bound.
queueSize parameter common int Create a fixed size queue to receive requests.
pollInterval parameter consumer 1000 long The timeout used when polling from seda. When a timeout occurs, the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown.
threads parameter consumer 20 int Number of threads to be used by the routebox to receive requests.
connectionTimeout parameter producer 20000 long Timeout in millis used by the producer when sending a message.
sendToConsumer parameter producer true boolean Dictates whether a Producer endpoint sends a request to an external routebox consumer. If the setting is false, the Producer creates an embedded inner context and processes requests internally.
exchangePattern parameter advanced InOnly org.apache.camel.ExchangePattern InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter advanced false boolean Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

routebox consumer