camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <hekon...@gmail.com>
Subject Re: can camel throttle messages based a dynamic message key?
Date Tue, 28 Oct 2014 11:50:34 GMT
Hi Niels,

> I would like to throttle all queries for foo/@id=A12, foo/@id=30 and
> foo/@id=A10 separately.

What about the content-base routing followed by the different
throttler definition for each choice path?

from("direct:a")
  .choice()
    .when(...)
       .throttle(3).to("direct:b")
     .when(...)
       .throttle(30).to("direct:c")
     .otherwise()
       .to("direct:noThrottle");

Cheers.

-- 
Henryk Konsek
http://henryk-konsek.blogspot.com

Mime
View raw message