public interface CircuitBreaker
Modifier and Type | Method and Description |
---|---|
boolean |
allowRequest()
Is request is allowed to go through (is circuit breaker closed or opened).
|
void |
markFailure(Throwable cause)
Reports about failure conditions to circuit breaker.
|
void |
markSuccess()
Reports about successful invocation to circuit breaker.
|
boolean allowRequest()
void markFailure(Throwable cause)
cause
- exception happened (could be null in case the error is deducted
from response status/code).void markSuccess()
Apache CXF