Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
from("direct:start").loadBalance()
	.circuitBreaker(2, 1000L, MyExceptionProcessorMyCustomException.class)
    .to("mock:result");

...

Code Block
languagexml
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
	<route>
    <from uri="direct:start"/>
    <loadBalance>
        <circuitBreaker threshold="2" halfOpenAfter="1000">
            <exception>MyExceptionProcessor<<exception>MyCustomException</exception>
        </circuitBreaker>
        <to uri="mock:result"/>
    </loadBalance>
</route>
</camelContext>

...