public class FaultToleranceConfigurationCommon extends IdentifiedType
Constructor and Description |
---|
FaultToleranceConfigurationCommon() |
Modifier and Type | Method and Description |
---|---|
String |
getBulkheadEnabled() |
String |
getBulkheadExecutorServiceRef() |
String |
getBulkheadMaxConcurrentCalls() |
String |
getBulkheadWaitingTaskQueue() |
String |
getCircuitBreakerRef() |
String |
getDelay() |
String |
getFailureRatio() |
String |
getRequestVolumeThreshold() |
String |
getSuccessThreshold() |
String |
getTimeoutDuration() |
String |
getTimeoutEnabled() |
String |
getTimeoutPoolSize() |
String |
getTimeoutScheduledExecutorServiceRef() |
void |
setBulkheadEnabled(String 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(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 |
setCircuitBreakerRef(String circuitBreakerRef)
Refers to an existing io.smallrye.faulttolerance.core.circuit.breaker.CircuitBreaker instance to lookup and use
from the registry.
|
void |
setDelay(String delay)
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 closed
|
void |
setSuccessThreshold(String successThreshold)
Controls the number of trial calls which are allowed when the circuit breaker is half-open
|
void |
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 |
setTimeoutScheduledExecutorServiceRef(String timeoutScheduledExecutorServiceRef)
References to a custom thread pool to use when timeout is enabled
|
getId, setId
public String getCircuitBreakerRef()
public void setCircuitBreakerRef(String circuitBreakerRef)
public String getDelay()
public void setDelay(String delay)
public String getSuccessThreshold()
public void setSuccessThreshold(String successThreshold)
public String getRequestVolumeThreshold()
public void setRequestVolumeThreshold(String requestVolumeThreshold)
public String getFailureRatio()
public void setFailureRatio(String failureRatio)
The threshold must be greater than 0 and not greater than 100. Default value is 50 percentage.
public String getTimeoutEnabled()
public void setTimeoutEnabled(String timeoutEnabled)
public String getTimeoutDuration()
public void setTimeoutDuration(String timeoutDuration)
public String getTimeoutPoolSize()
public void setTimeoutPoolSize(String timeoutPoolSize)
public String getTimeoutScheduledExecutorServiceRef()
public void setTimeoutScheduledExecutorServiceRef(String timeoutScheduledExecutorServiceRef)
public String getBulkheadEnabled()
public void setBulkheadEnabled(String bulkheadEnabled)
public String getBulkheadMaxConcurrentCalls()
public void setBulkheadMaxConcurrentCalls(String bulkheadMaxConcurrentCalls)
public String getBulkheadWaitingTaskQueue()
public void setBulkheadWaitingTaskQueue(String bulkheadWaitingTaskQueue)
public String getBulkheadExecutorServiceRef()
public void setBulkheadExecutorServiceRef(String bulkheadExecutorServiceRef)
Apache Camel