Versions Compared

Key

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

...

...

Option

Default

Description

pollStrategy

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.

startScheduler

true

Whether the scheduler should be auto started.

initialDelay

500

Initial delay in millis before first poll.

delay

500

Delay in millis between polls.

timeUnit

TimeUnit.MILLISECONDS

time unit for initialDelay and delay options.

useFixedDelay

true

Whether to use fixed delay or fixed rate between polls.

runLoggingLevel

TRACE

Logging level when a poll is executed.

About error handling and scheduled polling consumers

...