Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4508

Add option for scheduled polling consumer to emit an null message if there was no messages to poll

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0
    • camel-core
    • None
    • Patch Available
    • Unknown

    Description

      For example when people poll files, then they may want to react if there is no files to pickup. Currently you would have to use a poll strategy, but we should add an option you can configure on the endpoint, to have it emit an null message instead.

      sendEmptyMessageWhenIdle - false - If this option is true, and there was no messages to poll, then we simulate processing a single message, by sending an empty message.

      Attachments

        1. CAMEL-4508.patch
          34 kB
          Rich Newcomb

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: