You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/08/07 17:13:49 UTC

[jira] [Resolved] (CAMEL-7974) Provide CircuitBreaker state in an exchange property

     [ https://issues.apache.org/jira/browse/CAMEL-7974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-7974.
--------------------------------
       Resolution: Fixed
         Assignee: Claus Ibsen
    Fix Version/s: 2.16.0

The state is now stored as exchange property

> 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
>            Assignee: Claus Ibsen
>            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)