Thanks Yogu & Taariq for replying. I have gone through the Dynamically Changing Maximum Request per Period <http://camel.apache.org/throttler.html#Throttler-Dynamicallychangingmaximumrequestsperperiod> section in throttler documentation. What I am looking for is let's say if a debugFlag header is present. Then only I want to throttle the request to some constant value 5 requests / sec. I can not rely on the caller to send me the throttle rate on a separate header.
There is no hard requirement that debugFlag has to be header it can be query param as well if that simplifies the implementation. On Fri, Jun 17, 2016 at 7:27 AM, yogu13 <yog...@gmail.com> wrote: > check Dynamically changing maximum requests per period @ > http://camel.apache.org/throttler.html > > you can set the query param to exchange header and throller can pick this > value from header. > > Regards, > -Yogesh > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Throttle-Camel-Requests-based-on-query-param-tp5784129p5784136.html > Sent from the Camel - Users mailing list archive at Nabble.com. >