camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Preben.Asmussen" <>
Subject [DISCUSS] Dynamic ScheduledPollConsumer
Date Sun, 08 Jan 2012 13:04:57 GMT

We use a lot of polling in our integrations using components for File, FTP,
Jpa (interface tables) and so on. 
Usually files or tables are only updated once a day or even once a week in a
batch like fashion. When this happens its of course important to process as
fast as possible (using the default 500 ms delay), but most of the time when
there is no activity, polling every 500 ms. is not necessary and takes
system resources when running many polling routes on the same box.  

I was thinking that the ScheduledPollConsumer could be more dynamic by
introducing a new option eg. maxDelay, that resets the scheduler to maxDelay
if a poll results in no exchange (maybe after x polls with no results). 
The same goes if a poll results in an exchange, and the delay currently is
at maxDelay the scheduler is reset to the original delay thereby polling
more agresive again.

Any comments.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message