[
https://issues.apache.org/jira/browse/CAMEL-4928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13191382#comment-13191382
]
Sergey Zhemzhitsky commented on CAMEL-4928:
-------------------------------------------
I noticed that *synchronous=false* is used primarily by producers and
*asyncConsumer* parameter exists only in jms consumer, so I suppose that
*synchronous* parameter can be used to determine whether both producers or
consumers should be synchronous. (Maybe jms consumer should consider using of
*synchronous* parameter instead of *asyncConsumer* to prevent introduction of
new parameters for the same thing in other components)
So, the patch was replaced to involve usage of *synchronous* parameter.
> 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