Name

Poll Enrich — Enriches messages with data retrieved from a polling consumer

Usage

The poll enrich pattern uses a polling consumer to pull data from an endpoint outside of the route and uses the new data to enrich the message being processed by the route. An AggregationStrategy is used to determine how the data is combined.

The poll enrich pattern can be used anywhere in the body of a route.

The Poll Enrich pattern is typically used to poll files from an FTP server.

Properties

Table 69 describes the properties you can specify using the properties editor.

Table 69. Poll Enrich Properties

NameDescription
Resource UriSpecifies the URI of the endpoint from which the enrichment data is pulled.
Inherit Error HandlerSpecifies whether the node should use the error handler configured for the route. The default is Disabled.
Aggregation Strategy RefSpecifies a reference for looking up the AggregationStrategy in the registry.
TimeoutSpecifies the time, in milliseconds, the enricher polls for data before timing out. An negative value specifies that the enricher will never timeout.
IdSpecifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Camel XML file.
DescriptionSpecifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel.

[Important]Important

Either Resource Uri or Resource Ref must be specified. The editor does not validate that one is provided.