[ 
https://issues.apache.org/jira/browse/CAMEL-12125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16314530#comment-16314530
 ] 

ASF GitHub Bot commented on CAMEL-12125:
----------------------------------------

davsclaus commented on a change in pull request #2165: [CAMEL-12125] add 
keepOpen to endpoint circuit breaker
URL: https://github.com/apache/camel/pull/2165#discussion_r160024327
 
 

 ##########
 File path: 
camel-core/src/main/java/org/apache/camel/impl/ThrottlingExceptionRoutePolicy.java
 ##########
 @@ -73,17 +74,27 @@
     // stateful information
     private final AtomicInteger failures = new AtomicInteger();
     private final AtomicInteger state = new AtomicInteger(STATE_CLOSED);
+    private AtomicBoolean keepOpen = new AtomicBoolean(false);
 
 Review comment:
   can this be final like the others

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Add keepOpen to the ThrottlingExceptionRoutePolicy circuit breaker
> ------------------------------------------------------------------
>
>                 Key: CAMEL-12125
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12125
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.19.0
>            Reporter: Mike Barlotta
>            Priority: Minor
>
> a useful addition to the endpoint circuit breaker (see CAMEL-10718) would be 
> the ability to force it into the open state so that it suspends consuming 
> even if there are no exceptions. 
> this would function similar to the Netflix Hystrix forceOpen
> https://github.com/Netflix/Hystrix/wiki/Configuration#circuitBreaker.forceOpen
> Willing to submit a PR



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to