GitHub user CodeSmell opened a pull request:

    Throttling on Exceptions (RoutePolicy)

    Our project recently needed a circuit breaker that stop consuming messages 
from the from endpoint. I noticed that the Camel circuit breakers consumed from 
the endpoint even in the open mode and controlled access to the to endpoints on 
the route. 
    Based on this Stack Overflow 
 I created a circuit breaker that will stop consuming from the starting 
endpoint based on exceptions being thrown. It is using a 
[RoutePolicy]( and imitates the 
 as well as the 
    Not sure if there is any interest in adding it to Camel.

You can merge this pull request into a Git repository by running:

    $ git pull circuitBreakerRoutePolicy

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1400
commit 9cea3200ac3936791e211e96022bf955229d42a4
Author: CodeSmell <>
Date:   2017-01-13T15:28:25Z

    Throttling on Exceptions (RoutePolicy)


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to