Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.14.0
-
Fix Version/s: 2.16.0
-
Component/s: camel-core, eip
-
Labels:None
-
Estimated Complexity:Novice
Description
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()
Attachments
Issue Links
- is part of
-
CAMEL-5539 Circuit Breaker EIP
-
- Resolved
-