Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.14.0
-
None
-
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