Name
Multicast — Routes a message to a number of endpoints
Usage
The multicast pattern routes a message to multiple endpoints without modifying the message. Each endpoint gets a copy of the same message. In the event that the route's exchange pattern is in-out, the multicast pattern aggregates the responses into a single message.
The multicast pattern can appear at any point in the body of a route. It must be followed by two or more destinations.
Properties
Table 3.11 describes the properties you can specify using the properties editor.
Table 3.11. Multicast Properties
Name | Description |
---|---|
Timeout | Specifies the amount of time, in milliseconds, the node will attempt to deliver a message before timing out. |
Streaming | Specifies if the multicast works in streaming mode. |
Parallel Processing | Specifies if the multicast messages are forwarded to multiple destinations concurrently. |
Stop On Exception | Specifies if the node will stop all processing if one of the endpoints receiving a message throws an exception. |
Strategy Ref | Specifies a reference for looking up the
AggregationStrategy in the registry. |
Executor Service Ref | Specifies a reference for looking up the
executorService to use for
thread pool management. |
Share Unit of Work | Specifies whether all of the resulting exchanges are considered a single shared unit of work. |
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |