failsafe v2.4.0 Release Notes
-
๐ Improvements
- โ Added time based thresholding support to
CircuitBreaker
via:withFailureThreshold(int failureThreshold, Duration failureThresholdingPeriod)
withFailureThreshold(int failureThreshold, int failureExecutionThreshold, Duration failureThresholdingPeriod)
withFailureRateThreshold(int failureRateThreshold, int failureExecutionThreshold, Duration failureThresholdingPeriod)
- โ Added getters to
CircuitBreaker
for existing count based thresholding settings:getFailureThresholdingCapacity()
getSuccessThresholdingCapacity()
- And added getters to
CircuitBreaker
for new time based thresholding settings:getFailureRateThreshold()
getFailureExecutionThreshold()
getFailureThresholdingPeriod()
- โ Added some new metrics to
CircuitBreaker
:getSuccessRate()
getFailureRate()
getExecutionCount()
API Changes
- ๐ Changed the return type of
CircuitBreaker
'sgetFailureThreshold()
andgetSuccessThreshold()
fromRatio
toint
.getFailureThresholdingCapacity
,getFailureRateThreshold
,getFailureExecutionThreshold
, andgetSuccessThresholdingCapacity
provide additional detail about thresholding configuration. - โ Removed support for the previously deprecated
CircuitBreaker.withTimeout
. TheTimeout
policy should be used instead.
- โ Added time based thresholding support to