Create a CircuitBreaker that will be open if the number of consecutive failrues excceeds the given threshold.
Create a CircuitBreaker that will be open if the failure rate in a time window exceeds the given threshold.
Create a CircuitBreaker that will be open if the failure rate in a time window exceeds the given threshold. The failure rate will be decayed exponentially as time goes.
Create a CircuitBreaker that will be open after observing numFailures out of numExecutions.
(Since version ) see corresponding Javadoc for more information.