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

1000

Milliseconds before polling the file/directory starts.

delay

500

Initial delay in millis before first poll.

Milliseconds before the next poll of the file/directory.

useFixedDelay

 

Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details. In Camel 2.7.x or older the default value is false. From Camel 2.8 onwards the default value is true

delay

500

Delay in millis between polls.

timeUnit

TimeUnit.MILLISECONDS

time unit for initialDelay and delay options.

useFixedDelay runLoggingLevel

true

Whether to use fixed delay or fixed rate between polls.

TRACE

Camel 2.8: The consumer logs a start/complete log line when it polls. This option allows you to configure the logging level for that

runLoggingLevel

TRACE

Logging level when a poll is executed.

About error handling and scheduled polling consumers

...