@Configurer public class FaultToleranceConfigurationProperties extends Object
| Constructor and Description |
|---|
FaultToleranceConfigurationProperties(MainConfigurationProperties parent) |
| Modifier and Type | Method and Description |
|---|---|
MainConfigurationProperties |
end() |
Boolean |
getBulkheadEnabled() |
String |
getBulkheadExecutorServiceRef() |
Integer |
getBulkheadMaxConcurrentCalls() |
Integer |
getBulkheadWaitingTaskQueue() |
String |
getCircuitBreakerRef() |
Long |
getDelay() |
Integer |
getFailureRatio() |
Integer |
getRequestVolumeThreshold() |
Integer |
getSuccessThreshold() |
Long |
getTimeoutDuration() |
Boolean |
getTimeoutEnabled() |
Integer |
getTimeoutPoolSize() |
String |
getTimeoutScheduledExecutorServiceRef() |
void |
setBulkheadEnabled(Boolean bulkheadEnabled)
Whether bulkhead is enabled or not on the circuit breaker.
|
void |
setBulkheadExecutorServiceRef(String bulkheadExecutorServiceRef)
References to a custom thread pool to use when bulkhead is enabled.
|
void |
setBulkheadMaxConcurrentCalls(Integer bulkheadMaxConcurrentCalls)
Configures the max amount of concurrent calls the bulkhead will support.
|
void |
setBulkheadWaitingTaskQueue(Integer bulkheadWaitingTaskQueue)
Configures the task queue size for holding waiting tasks to be processed by the bulkhead.
|
void |
setCircuitBreakerRef(String circuitBreakerRef)
Refers to an existing io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker instance
to lookup and use from the registry.
|
void |
setDelay(Long delay)
Control how long the circuit breaker stays open.
|
void |
setFailureRatio(Integer failureRatio)
Configures the failure rate threshold in percentage.
|
void |
setRequestVolumeThreshold(Integer requestVolumeThreshold)
Controls the size of the rolling window used when the circuit breaker is closed
Default value is 20.
|
void |
setSuccessThreshold(Integer successThreshold)
Controls the number of trial calls which are allowed when the circuit breaker is half-open
Default value is 1.
|
void |
setTimeoutDuration(Long timeoutDuration)
Configures the thread execution timeout.
|
void |
setTimeoutEnabled(Boolean timeoutEnabled)
Whether timeout is enabled or not on the circuit breaker.
|
void |
setTimeoutPoolSize(Integer timeoutPoolSize)
Configures the pool size of the thread pool when timeout is enabled.
|
void |
setTimeoutScheduledExecutorServiceRef(String timeoutScheduledExecutorServiceRef)
References to a custom thread pool to use when timeout is enabled
|
FaultToleranceConfigurationProperties |
withBulkheadEnabled(Boolean bulkheadEnabled)
Whether bulkhead is enabled or not on the circuit breaker.
|
FaultToleranceConfigurationProperties |
withBulkheadExecutorServiceRef(String bulkheadExecutorServiceRef)
References to a custom thread pool to use when bulkhead is enabled.
|
FaultToleranceConfigurationProperties |
withBulkheadMaxConcurrentCalls(Integer bulkheadMaxConcurrentCalls)
Configures the max amount of concurrent calls the bulkhead will support.
|
FaultToleranceConfigurationProperties |
withBulkheadWaitingTaskQueue(Integer bulkheadWaitingTaskQueue)
Configures the task queue size for holding waiting tasks to be processed by the bulkhead.
|
FaultToleranceConfigurationProperties |
withCircuitBreakerRef(String circuitBreakerRef)
Refers to an existing io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker instance
to lookup and use from the registry.
|
FaultToleranceConfigurationProperties |
withDelay(Long delay)
Control how long the circuit breaker stays open.
|
FaultToleranceConfigurationProperties |
withFailureRatio(Integer failureRatio)
Configures the failure rate threshold in percentage.
|
FaultToleranceConfigurationProperties |
withRequestVolumeThreshold(Integer requestVolumeThreshold)
Controls the size of the rolling window used when the circuit breaker is closed
Default value is 20.
|
FaultToleranceConfigurationProperties |
withSuccessThreshold(Integer successThreshold)
Controls the number of trial calls which are allowed when the circuit breaker is half-open
Default value is 1.
|
FaultToleranceConfigurationProperties |
withTimeoutDuration(Long timeoutDuration)
Configures the thread execution timeout.
|
FaultToleranceConfigurationProperties |
withTimeoutEnabled(Boolean timeoutEnabled)
Whether timeout is enabled or not on the circuit breaker.
|
FaultToleranceConfigurationProperties |
withTimeoutPoolSize(Integer timeoutPoolSize)
Configures the pool size of the thread pool when timeout is enabled.
|
FaultToleranceConfigurationProperties |
withTimeoutScheduledExecutorServiceRef(String timeoutScheduledExecutorServiceRef)
References to a custom thread pool to use when timeout is enabled
|
public FaultToleranceConfigurationProperties(MainConfigurationProperties parent)
public MainConfigurationProperties end()
public String getCircuitBreakerRef()
public void setCircuitBreakerRef(String circuitBreakerRef)
public Long getDelay()
public void setDelay(Long delay)
public Integer getSuccessThreshold()
public void setSuccessThreshold(Integer successThreshold)
public Integer getRequestVolumeThreshold()
public void setRequestVolumeThreshold(Integer requestVolumeThreshold)
public Integer getFailureRatio()
public void setFailureRatio(Integer failureRatio)
The threshold must be greater than 0 and not greater than 100. Default value is 50 percentage.
public Boolean getTimeoutEnabled()
public void setTimeoutEnabled(Boolean timeoutEnabled)
public Long getTimeoutDuration()
public void setTimeoutDuration(Long timeoutDuration)
public Integer getTimeoutPoolSize()
public void setTimeoutPoolSize(Integer timeoutPoolSize)
public String getTimeoutScheduledExecutorServiceRef()
public void setTimeoutScheduledExecutorServiceRef(String timeoutScheduledExecutorServiceRef)
public Boolean getBulkheadEnabled()
public void setBulkheadEnabled(Boolean bulkheadEnabled)
public Integer getBulkheadMaxConcurrentCalls()
public void setBulkheadMaxConcurrentCalls(Integer bulkheadMaxConcurrentCalls)
public Integer getBulkheadWaitingTaskQueue()
public void setBulkheadWaitingTaskQueue(Integer bulkheadWaitingTaskQueue)
public String getBulkheadExecutorServiceRef()
public void setBulkheadExecutorServiceRef(String bulkheadExecutorServiceRef)
public FaultToleranceConfigurationProperties withCircuitBreakerRef(String circuitBreakerRef)
public FaultToleranceConfigurationProperties withDelay(Long delay)
public FaultToleranceConfigurationProperties withSuccessThreshold(Integer successThreshold)
public FaultToleranceConfigurationProperties withRequestVolumeThreshold(Integer requestVolumeThreshold)
public FaultToleranceConfigurationProperties withFailureRatio(Integer failureRatio)
The threshold must be greater than 0 and not greater than 100. Default value is 50 percentage.
public FaultToleranceConfigurationProperties withTimeoutEnabled(Boolean timeoutEnabled)
public FaultToleranceConfigurationProperties withTimeoutDuration(Long timeoutDuration)
public FaultToleranceConfigurationProperties withTimeoutPoolSize(Integer timeoutPoolSize)
public FaultToleranceConfigurationProperties withTimeoutScheduledExecutorServiceRef(String timeoutScheduledExecutorServiceRef)
public FaultToleranceConfigurationProperties withBulkheadEnabled(Boolean bulkheadEnabled)
public FaultToleranceConfigurationProperties withBulkheadMaxConcurrentCalls(Integer bulkheadMaxConcurrentCalls)
public FaultToleranceConfigurationProperties withBulkheadWaitingTaskQueue(Integer bulkheadWaitingTaskQueue)
public FaultToleranceConfigurationProperties withBulkheadExecutorServiceRef(String bulkheadExecutorServiceRef)
Apache Camel