[
https://issues.apache.org/jira/browse/CAMEL-7974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-7974:
-------------------------------
Priority: Minor (was: Major)
> Provide CircuitBreaker state in an exchange property
> ----------------------------------------------------
>
> Key: CAMEL-7974
> URL: https://issues.apache.org/jira/browse/CAMEL-7974
> Project: Camel
> Issue Type: Improvement
> Components: camel-core, eip
> Affects Versions: 2.14.0
> Reporter: Yves De Moor
> Priority: Minor
> Fix For: 2.16.0
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> To be more flexible, the idea is to create some exchange properties
> Put circuit state in an exchange property (2 status : Open / closed, as
> halfOpen do the same as closed in term of business)
> use a Content Based Router to perform something like
> from("direct:a")
> .loadBalance()//
> .circuitBreaker(3, 3000L, MyCustomException.class)
> .choice()
> .when(property(Exchange.CircuitBreaker_state).isEqualTo("closed"))
> .to("direct:normalMode")
> .when(property(Exchange.CircuitBreaker_state).isEqualTo("opened"))
> .to("direct:degradedMode")
> .end()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)