Thanks Owain. The below code worked for me:- Predicate isDebug = header("debug").isEqualTo("true");
from("jetty:http://localhost:8888/orchestratorservice") .choice() .when(isDebug).throttle(5).timePeriodMillis(1000).rejectExecution(true ).process(processor) .endChoice() .otherwise() .process(processor); On Sun, Jun 19, 2016 at 1:47 PM, owain <owain@integration.technology> wrote: > All you need to do is to test for the presence of the query parameter or > the > Header being set. > > Have a look at http://camel.apache.org/predicate.html > > So all you do is amend the route or parameters to the component after that. > > O. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Throttle-Camel-Requests-based-on-query-param-tp5784129p5784190.html > Sent from the Camel - Users mailing list archive at Nabble.com. >