The inflight policy is throttling on the consumer, so it basically
turn the consumer on | off depending on the thresholds.

On Mon, Jan 26, 2015 at 1:19 AM, Anton Hughes <[email protected]> wrote:
> Hi Claus
>
> We are using Jboss Switchyard, and the current stable release uses Camel
> 2.10, and the rejectExecution is available in 2.14.
>
> So, I am again looking into ThrottlingInflightRoutePolicy.
>
> Am I correct in my understanding that ThrottlingInflightRoutePolicy will
> stop ALL messages, until the number of incoming messages drops below the
> set percentage (resumePercentOfMax) is reached.
>
> I am assuming that it is not possible only allow a maximum number of
> messages per timeframe, without suspending the route - using
> ThrottlingInflightRoutePolicy. Is this correct?
>
> Thanks
>
> On Sat, Jan 24, 2015 at 10:34 PM, Anton Hughes <[email protected]> wrote:
>
>>
>> On Sat, Jan 24, 2015 at 9:42 PM, Claus Ibsen <[email protected]>
>> wrote:
>>
>>> You can use the rejectExecution option and then use an error handler
>>> to catch that exception and then handle and log it.
>>> http://camel.apache.org/throttler
>>>
>>
>> Thanks Claus
>>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to