@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Documented @Retryable(stateful=true) public @interface CircuitBreaker
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Throwable>[] |
exclude
Exception types that are not retryable.
|
Class<? extends Throwable>[] |
include
Exception types that are retryable.
|
String |
label
A unique label for the circuit for reporting and state management.
|
int |
maxAttempts |
long |
openTimeout
When
maxAttempts() failures are reached within this timeout, the circuit
is opened automatically, preventing access to the downstream component. |
long |
resetTimeout
If the circuit is open for longer than this timeout then it resets on the next call
to give the downstream component a chance to respond again.
|
Class<? extends Throwable>[] |
value
Exception types that are retryable.
|
public abstract int maxAttempts
public abstract String label
public abstract long resetTimeout
public abstract long openTimeout
maxAttempts()
failures are reached within this timeout, the circuit
is opened automatically, preventing access to the downstream component.Copyright © 2018 SpringSource. All rights reserved.