Hi

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

On Sat, Jan 24, 2015 at 2:23 AM, Anton Hughes <[email protected]> wrote:
> On Sat, Jan 24, 2015 at 1:20 AM, Claus Ibsen <[email protected]> wrote:
>
>> log how?
>
>
> Hi Claus
>
> My use-case is, my application sometimes gets overloaded due to too many
> incoming messages. In order to maintain uptime and performance I would like
> to throttle these. Specifically, i would like to discard - not delay - any
> messages that are above the throttle threshold.
>
> However, should there be the need to identify if a message was discarded, I
> need to log to file each message that has been discarded due to being
> throttled.
>
> Would the ThrottlingInflightRoutePolicy be the best solution for this?
>
> Thanks



-- 
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