camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Freeman <>
Subject Re: any way to turn off a timer?
Date Mon, 28 Oct 2013 14:21:48 GMT
Thanks, but that won't work because it's a single route with 2 inputs: a 
timer and a seda queue.  So if I stop the route, I won't get the seda 
messages any more.

On 10/28/2013 01:21 AM, Willem jiang wrote:
> I think the best way to turn off the timer is to stop the timer route.
> As you just send the message to sera queue so the timer route is decoupled with the seda
consumer route.
> --
> Willem Jiang
> Red Hat, Inc.
> Web:
> Blog: ( (English)
>   ( (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
> On Sunday, October 27, 2013 at 3:22 AM, Keith Freeman wrote:
>> I have a route with 2 sources, a timer and a seda queue. It uses the
>> timer to poll a data source while it's getting data from the queue, and
>> processes all of the data identically later in the route. But after a
>> while, the polled data source is exhausted while the seda queue (and the
>> route) will continue to run more-or-less forever.
>> So once I recognize that the polled data source is exhausted, I'd like
>> to turn off the timer so I don't have to start ignoring the polls from
>> it. I realize I might be able to use 2 separate routes and just stop
>> the timer route when it's done, but having only 1 route fits my design
>> much better.
>> So is there any way to turn off the timer? (BTW I don't know the number
>> of polls in advance, otherwise I know I could use the repeatCount parameter)

View raw message