circuitBreaker.requestVolumeThreshold
——在给定的时间段内,方法应该被调用的次数。circuitBreaker.errorThresholdPercentage
——给定时间段内,失败方法所占的百分比。metrics.rollingStats.timeInMilliseconds
——考虑请求量和错误百分比的滚动时间段。circuitBreaker.sleepWindowInMilliseconds
——断开状态持续多长时间进入半打开状态,以再次尝试调用原始失败方法。metrics.rollingState.timeInMilliseconds
中指定的时间段内,如果 circuitBreaker.requestVolumeThreshold
和 circuitBreaker.errorThresholdPercentage
同时超过阈值,则断路器进入断开状态。在 circuitBreaker.sleepWindowInMilliseconds
指定的时间内保持断开状态。之后将变为半开状态,并再一次尝试最初的失败方法。circuitBreaker.sleepWindowInMilliseconds
命令属性: