GitHub user CodeSmell opened a pull request:

    https://github.com/apache/camel/pull/1400

    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 
[answer](http://stackoverflow.com/questions/9078621/controlling-start-up-and-shutdown-of-camel-routes),
 I created a circuit breaker that will stop consuming from the starting 
endpoint based on exceptions being thrown. It is using a 
[RoutePolicy](http://camel.apache.org/routepolicy.html) and imitates the 
existing 
[ThrottlingInflightRoutePolicy](http://camel.apache.org/route-throttling-example.html)
 as well as the 
[CircuitBreakingLoadBalancer](http://camel.apache.org/load-balancer.html).
    
    Not sure if there is any interest in adding it to Camel.
    Thanks

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

    $ git pull https://github.com/CodeSmell/camel circuitBreakerRoutePolicy

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

    https://github.com/apache/camel/pull/1400.patch

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 <mbarlo...@gmail.com>
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to