The routebox component allows to send/receive messages between Camel routes in a black box way.
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 |
|||
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. | |||
bridgeErrorHandler | parameter | consumer | boolean | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
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. | ||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
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. | ||
innerContext | parameter | advanced | org.apache.camel.CamelContext | A string representing a key in the Camel Registry matching an object value of the type org.apache.camel.CamelContext. If a CamelContext is not provided by the user a CamelContext is automatically created for deployment of inner routes. | |||
innerProducerTemplate | parameter | advanced | org.apache.camel.ProducerTemplate | The ProducerTemplate to use by the internal embeded CamelContext | |||
innerRegistry | parameter | advanced | org.apache.camel.spi.Registry | To use a custom registry for the internal embedded CamelContext. | |||
routeBuilders | parameter | advanced | java.lang.String | A string representing a key in the Camel Registry matching an object value of the type List |
|||
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |