camel-issues 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-4928) Async API support by the Timer component
Date Sun, 22 Jan 2012 11:19:39 GMT

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

Claus Ibsen commented on CAMEL-4928:
------------------------------------

I think the consumers should use the Async API by default. People can disable async in their
routes by setting synchronous=false, on the endpoint uri's if they want that disabled.

Or we could introduce asyncConsumer=true|false as a general option, for people to control
this.

The JMS consumer already have the asyncConsumer option.
                
> Async API support by the Timer component
> ----------------------------------------
>
>                 Key: CAMEL-4928
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4928
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.9.0
>            Reporter: Sergey Zhemzhitsky
>              Labels: timer
>         Attachments: CAMEL-4928.patch
>
>
> It would be great to have timer component support asynchronous API.
> Such a feature can be useful when timer component generates events which must be processed
by multiple threads. 
> Current implementation of the timer component makes a blocking call so the usage of thread
pools hardly possible to process multiple timer event simultaneously.
> {code:title=Sample}
> from("timer:start")
>     .threads(1, 5)
>     .to("bean:very-long-operation");
> {code}

--
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