Name
Idempotent Consumer — Filters out duplicate messages
Usage
The idempotent consumer pattern uses an expression to generate message IDs. The IDs are used to filter duplicate messages. When a duplicate is detected it is consumed.
The idempotent consumer pattern can be placed anywhere along the body of a route.
Properties
Table 3.5 describes the properties you can specify using the properties editor.
Table 3.5. Idempotent Consumer Properties
Name | Description |
---|---|
Expression | Specifies the expression used to generate message IDs. |
language | Specifies the expression language used to process the expression. |
Message Id Repository Ref | Specifies a reference to the implementation of
IdempotentRepository used to store the message
IDs. |
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Eager | Specifies if messages are added to the repository before the exchange finishes processing. If messages are added to the repository eagerly, the route can identify duplicates while there are still exchanges being processed. |
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 idempotent consumer. The description is included in the generated XML file. |
Related topics
Expression and Predicates Languages |
Configuring the Fuse IDE route editor in Using Fuse IDE |