Hi,
You can use the query param itself and throttle by header, or the choice
EIP to decide based on your query param, what to set the header to.

 <!-- use a header to determine how many messages to throttle per 0.5 sec
-->
    <header>throttleValue</header>

Cheers

On Thu, Jun 16, 2016 at 8:43 PM, Debraj Manna <subharaj.ma...@gmail.com>
wrote:

> Hi,
>
> I have a camel route like below:-
>
> from("jetty:http://localhost:8888/orchestratorservice
> ").process(processor);
>
> from("direct:setStatusToReadyToShip").to(
> "bean:orderHelper?method=setStatusToReadyToShip")
>
>
> I have gone through the throttle <http://camel.apache.org/throttler.html>
> pattern. But is there a way I get rate limit / throttle based on a query
> param(e.g if debug=1 is set in request then we want to throttle requests to
> 10 req/sec).
>

Reply via email to