public static class CircuitBreakerConfigurationProperties.BackendProperties
extends java.lang.Object
CircuitBreaker instances.| Constructor and Description |
|---|
BackendProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getEventConsumerBufferSize() |
java.lang.Integer |
getFailureRateThreshold()
Returns the failure rate threshold for the circuit breaker as percentage.
|
java.lang.Class<? extends java.lang.Throwable>[] |
getIgnoreExceptions() |
java.lang.Class<? extends java.lang.Throwable>[] |
getRecordExceptions() |
java.lang.Class<java.util.function.Predicate<java.lang.Throwable>> |
getRecordFailurePredicate() |
java.lang.Boolean |
getRegisterHealthIndicator() |
java.lang.Integer |
getRingBufferSizeInClosedState()
Returns the ring buffer size for the circuit breaker while in closed state.
|
java.lang.Integer |
getRingBufferSizeInHalfOpenState()
Returns the ring buffer size for the circuit breaker while in half open state.
|
java.time.Duration |
getWaitDurationInOpenState()
Returns the wait duration the CircuitBreaker will stay open, before it switches to half closed.
|
void |
setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize) |
void |
setFailureRateThreshold(java.lang.Integer failureRateThreshold)
Sets the failure rate threshold for the circuit breaker as percentage.
|
void |
setIgnoreExceptions(java.lang.Class<? extends java.lang.Throwable>[] ignoreExceptions) |
void |
setRecordExceptions(java.lang.Class<? extends java.lang.Throwable>[] recordExceptions) |
void |
setRecordFailurePredicate(java.lang.Class<java.util.function.Predicate<java.lang.Throwable>> recordFailurePredicate) |
void |
setRegisterHealthIndicator(java.lang.Boolean registerHealthIndicator) |
void |
setRingBufferSizeInClosedState(java.lang.Integer ringBufferSizeInClosedState)
Sets the ring buffer size for the circuit breaker while in closed state.
|
void |
setRingBufferSizeInHalfOpenState(java.lang.Integer ringBufferSizeInHalfOpenState)
Sets the ring buffer size for the circuit breaker while in half open state.
|
void |
setWaitDurationInOpenState(java.time.Duration waitDurationInOpenState)
Sets the wait duration the CircuitBreaker should stay open, before it switches to half closed.
|
void |
setWaitInterval(java.lang.Integer waitInterval)
Deprecated.
|
@Deprecated public void setWaitInterval(java.lang.Integer waitInterval)
waitInterval - the wait durationpublic java.lang.Integer getFailureRateThreshold()
public void setFailureRateThreshold(java.lang.Integer failureRateThreshold)
failureRateThreshold - the failure rate thresholdpublic java.time.Duration getWaitDurationInOpenState()
public void setWaitDurationInOpenState(java.time.Duration waitDurationInOpenState)
waitDurationInOpenState - the wait durationpublic java.lang.Integer getRingBufferSizeInClosedState()
public void setRingBufferSizeInClosedState(java.lang.Integer ringBufferSizeInClosedState)
ringBufferSizeInClosedState - the ring buffer sizepublic java.lang.Integer getRingBufferSizeInHalfOpenState()
public void setRingBufferSizeInHalfOpenState(java.lang.Integer ringBufferSizeInHalfOpenState)
ringBufferSizeInHalfOpenState - the ring buffer sizepublic java.lang.Integer getEventConsumerBufferSize()
public void setEventConsumerBufferSize(java.lang.Integer eventConsumerBufferSize)
public java.lang.Boolean getRegisterHealthIndicator()
public void setRegisterHealthIndicator(java.lang.Boolean registerHealthIndicator)
public java.lang.Class<java.util.function.Predicate<java.lang.Throwable>> getRecordFailurePredicate()
public void setRecordFailurePredicate(java.lang.Class<java.util.function.Predicate<java.lang.Throwable>> recordFailurePredicate)
public java.lang.Class<? extends java.lang.Throwable>[] getRecordExceptions()
public void setRecordExceptions(java.lang.Class<? extends java.lang.Throwable>[] recordExceptions)
public java.lang.Class<? extends java.lang.Throwable>[] getIgnoreExceptions()
public void setIgnoreExceptions(java.lang.Class<? extends java.lang.Throwable>[] ignoreExceptions)