Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The ScheduledPollConsumer supports the following options:

Option

Default

Description

pollStrategy

Camel 2.0: A pluggable org.apache.camel.PollingConsumerPollStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel. In other words the error occurred while the polling was gathering information, for instance access to a file network failed so Camel cannot access it to scan for files. The default implementation will log the caused exception at WARN level and ignore it.

sendEmptyMessageWhenIdle

false

Camel 2.9: If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead.

About error handling and scheduled polling consumers

...