@Test(expected = IllegalArgumentException.class) public void slowCallRateThresholdAboveHundredShouldFail() { custom().slowCallRateThreshold(101).build(); }
public static Builder custom() { return new Builder(); }
CircuitBreakerConfig implements Serializable { public static Builder custom() { return new Builder(); } }
CircuitBreakerConfig implements Serializable { public static Builder custom() { return new Builder(); } private  CircuitBreakerConfig(); }
CircuitBreakerConfig implements Serializable { public static Builder custom() { return new Builder(); } private  CircuitBreakerConfig(); static Builder custom(); static Builder from(CircuitBreakerConfig baseConfig); static CircuitBreakerConfig ofDefaults(); float getFailureRateThreshold(); @Deprecated Duration getWaitDurationInOpenState(); IntervalFunction getWaitIntervalFunctionInOpenState(); int getSlidingWindowSize(); Predicate<Throwable> getRecordExceptionPredicate(); Predicate<Throwable> getIgnoreExceptionPredicate(); Function<Clock, Long> getCurrentTimestampFunction(); TimeUnit getTimestampUnit(); boolean isAutomaticTransitionFromOpenToHalfOpenEnabled(); int getMinimumNumberOfCalls(); boolean isWritableStackTraceEnabled(); int getPermittedNumberOfCallsInHalfOpenState(); SlidingWindowType getSlidingWindowType(); float getSlowCallRateThreshold(); Duration getSlowCallDurationThreshold(); Duration getMaxWaitDurationInHalfOpenState(); @Override String toString(); }
CircuitBreakerConfig implements Serializable { public static Builder custom() { return new Builder(); } private  CircuitBreakerConfig(); static Builder custom(); static Builder from(CircuitBreakerConfig baseConfig); static CircuitBreakerConfig ofDefaults(); float getFailureRateThreshold(); @Deprecated Duration getWaitDurationInOpenState(); IntervalFunction getWaitIntervalFunctionInOpenState(); int getSlidingWindowSize(); Predicate<Throwable> getRecordExceptionPredicate(); Predicate<Throwable> getIgnoreExceptionPredicate(); Function<Clock, Long> getCurrentTimestampFunction(); TimeUnit getTimestampUnit(); boolean isAutomaticTransitionFromOpenToHalfOpenEnabled(); int getMinimumNumberOfCalls(); boolean isWritableStackTraceEnabled(); int getPermittedNumberOfCallsInHalfOpenState(); SlidingWindowType getSlidingWindowType(); float getSlowCallRateThreshold(); Duration getSlowCallDurationThreshold(); Duration getMaxWaitDurationInHalfOpenState(); @Override String toString(); static final int DEFAULT_FAILURE_RATE_THRESHOLD; static final int DEFAULT_SLOW_CALL_RATE_THRESHOLD; static final int DEFAULT_WAIT_DURATION_IN_OPEN_STATE; static final int DEFAULT_PERMITTED_CALLS_IN_HALF_OPEN_STATE; static final int DEFAULT_MINIMUM_NUMBER_OF_CALLS; static final int DEFAULT_SLIDING_WINDOW_SIZE; static final int DEFAULT_SLOW_CALL_DURATION_THRESHOLD; static final int DEFAULT_WAIT_DURATION_IN_HALF_OPEN_STATE; static final SlidingWindowType DEFAULT_SLIDING_WINDOW_TYPE; static final boolean DEFAULT_WRITABLE_STACK_TRACE_ENABLED; }