camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4508) Add option for scheduled polling consumer to emit an null message if there was no messages to poll
Date Wed, 19 Oct 2011 09:26:10 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130466#comment-13130466
] 

Claus Ibsen commented on CAMEL-4508:
------------------------------------

Rich also add a note about this new option in the release notes.

The community have frankly asked from time to time about this improvement.
So its about time we listen :)
                
> Add option for scheduled polling consumer to emit an null message if there was no messages
to poll
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4508
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4508
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.9.0
>
>         Attachments: CAMEL-4508.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message