Annotation Interface CircuitBreaker
Wraps the annotated method in a circuit breaker. After
failureThreshold()
consecutive failures the breaker opens and fast-fails calls with
CrdbException(CircuitOpen) until resetTimeoutMillis() elapses.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintConsecutive failures that trip the breaker into the OPEN state.longTime the breaker stays OPEN before allowing a HALF_OPEN trial, in millis.
-
Element Details
-
failureThreshold
int failureThresholdConsecutive failures that trip the breaker into the OPEN state.- Default:
5
-
resetTimeoutMillis
long resetTimeoutMillisTime the breaker stays OPEN before allowing a HALF_OPEN trial, in millis.- Default:
30000L
-