Package org.apache.camel.model
Class FaultToleranceConfigurationCommon
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.FaultToleranceConfigurationCommon
- Direct Known Subclasses:
FaultToleranceConfigurationDefinition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDelay()
void
setBulkheadEnabled
(String bulkheadEnabled) Whether bulkhead is enabled or not on the circuit breaker.void
setBulkheadExecutorService
(String bulkheadExecutorService) References to a custom thread pool to use when bulkhead is enabled.void
setBulkheadMaxConcurrentCalls
(String bulkheadMaxConcurrentCalls) Configures the max amount of concurrent calls the bulkhead will support.void
setBulkheadWaitingTaskQueue
(String bulkheadWaitingTaskQueue) Configures the task queue size for holding waiting tasks to be processed by the bulkhead.void
setCircuitBreaker
(String circuitBreaker) Refers to an existing io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker instance to lookup and use from the registry.void
Control how long the circuit breaker stays open.void
setFailureRatio
(String failureRatio) Configures the failure rate threshold in percentage.void
setRequestVolumeThreshold
(String requestVolumeThreshold) Controls the size of the rolling window used when the circuit breaker is closedvoid
setSuccessThreshold
(String successThreshold) Controls the number of trial calls which are allowed when the circuit breaker is half-openvoid
setTimeoutDuration
(String timeoutDuration) Configures the thread execution timeout.void
setTimeoutEnabled
(String timeoutEnabled) Whether timeout is enabled or not on the circuit breaker.void
setTimeoutPoolSize
(String timeoutPoolSize) Configures the pool size of the thread pool when timeout is enabled.void
setTimeoutScheduledExecutorService
(String timeoutScheduledExecutorService) References to a custom thread pool to use when timeout is enabledMethods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
FaultToleranceConfigurationCommon
public FaultToleranceConfigurationCommon()
-
-
Method Details
-
getCircuitBreaker
-
setCircuitBreaker
Refers to an existing io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker instance to lookup and use from the registry. When using this, then any other circuit breaker options are not in use. -
getDelay
-
setDelay
Control how long the circuit breaker stays open. The default is 5 seconds. -
getSuccessThreshold
-
setSuccessThreshold
Controls the number of trial calls which are allowed when the circuit breaker is half-open -
getRequestVolumeThreshold
-
setRequestVolumeThreshold
Controls the size of the rolling window used when the circuit breaker is closed -
getFailureRatio
-
setFailureRatio
Configures the failure rate threshold in percentage. If the failure rate is equal or greater than the threshold the CircuitBreaker transitions to open and starts short-circuiting calls.The threshold must be greater than 0 and not greater than 100. Default value is 50 percentage.
-
getTimeoutEnabled
-
setTimeoutEnabled
Whether timeout is enabled or not on the circuit breaker. Default is false. -
getTimeoutDuration
-
setTimeoutDuration
Configures the thread execution timeout. Default value is 1 second. -
getTimeoutPoolSize
-
setTimeoutPoolSize
Configures the pool size of the thread pool when timeout is enabled. Default value is 10. -
getTimeoutScheduledExecutorService
-
setTimeoutScheduledExecutorService
References to a custom thread pool to use when timeout is enabled -
getBulkheadEnabled
-
setBulkheadEnabled
Whether bulkhead is enabled or not on the circuit breaker. Default is false. -
getBulkheadMaxConcurrentCalls
-
setBulkheadMaxConcurrentCalls
Configures the max amount of concurrent calls the bulkhead will support. -
getBulkheadWaitingTaskQueue
-
setBulkheadWaitingTaskQueue
Configures the task queue size for holding waiting tasks to be processed by the bulkhead. -
getBulkheadExecutorService
-
setBulkheadExecutorService
References to a custom thread pool to use when bulkhead is enabled.
-