Class CircuitBreakerXmlDslRecipe
java.lang.Object
org.openrewrite.Recipe
org.apache.camel.updates.camel40.xml.CircuitBreakerXmlDslRecipe
- All Implemented Interfaces:
Cloneable
public class CircuitBreakerXmlDslRecipe
extends org.openrewrite.Recipe
<a:href link="https://camel.apache.org/manual/camel-4-migration-guide.html#_circuitbreaker_eip" >Camel Migration guide</a:href>
The following options in camel-resilience4j was mistakenly not defined as attributes:- bulkheadEnabled
- bulkheadMaxConcurrentCalls
- bulkheadMaxWaitDuration
- timeoutEnabled
- timeoutExecutorService
- timeoutDuration
- timeoutCancelRunningFuture
<circuitBreaker>
<resilience4jConfiguration>
<timeoutEnabled>true</timeoutEnabled>
<timeoutDuration>2000</timeoutDuration>
</resilience4jConfiguration>
...
</circuitBreaker>
</pre>
To use attributes instead:
<circuitBreaker>
<resilience4jConfiguration timeoutEnabled="true" timeoutDuration="2000"/>
...
</circuitBreaker>
-
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> Methods inherited from class org.openrewrite.Recipe
addDataTable, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll
-
Constructor Details
-
CircuitBreakerXmlDslRecipe
public CircuitBreakerXmlDslRecipe()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Specified by:
getDescriptionin classorg.openrewrite.Recipe
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()- Overrides:
getVisitorin classorg.openrewrite.Recipe
-