[
https://issues.apache.org/jira/browse/CAMEL-9249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14972581#comment-14972581
]
Andrea Cosentino edited comment on CAMEL-9249 at 10/24/15 12:46 PM:
--------------------------------------------------------------------
Thanks.
I'll try to implement this.. Maybe we can check in the doStart: if delay is >=
0 then we use a TimerTask, while if delay < 0, we can use a
SingleThreadExecutor that do the same proposed logic, but faster.
was (Author: ancosen):
Thanks.
I'll try to implement this.. Maybe we can check in the doStart: if delay is >=
0 then we use a TimerTask, while if delay < 0, we can use a
SingleThreadExecutor that do the same logic, but faster.
> timer - Allow to specify a delay of -1 or something to indicate loop asap
> forever
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-9249
> URL: https://issues.apache.org/jira/browse/CAMEL-9249
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Andrea Cosentino
> Fix For: 2.17.0
>
>
> If you want to let a route trigger as fast as possible, then by settinh
> from timer:fast?delay=-1
> to http blah
> then with the timer we can detect its a delay < 0 and then instead of using a
> timer, then do a processor that's in a while loop and then keep routing
> {code}
> while (isRunAllowed) {
> create exchange
> process exchange
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)