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:20:10 GMT

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

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

Thanks for the patch. I am applying it now.

The new option should be documented here
http://camel.apache.org/polling-consumer.html

At the scheduled poll consumer. But may also add/refer to it from some of these components
as it can be commonly used, such as the file/ftp etc.


                
> 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