Skip to content

Instantly share code, notes, and snippets.

@bibryam
Created May 24, 2016 21:58
Show Gist options
  • Select an option

  • Save bibryam/6e75fbf714a24d590bc923524c5b15d3 to your computer and use it in GitHub Desktop.

Select an option

Save bibryam/6e75fbf714a24d590bc923524c5b15d3 to your computer and use it in GitHub Desktop.
Camel Circuit Breaker
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:start"/>
<loadBalance>
<circuitBreaker threshold="2" halfOpenAfter="1000">
<exception>MyCustomException</exception>
</circuitBreaker>
<to uri="mock:result"/>
</loadBalance>
</route>
</camelContext>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment