Class ReactorCircuitBreakerAspectExt
java.lang.Object
io.github.resilience4j.circuitbreaker.configure.ReactorCircuitBreakerAspectExt
- All Implemented Interfaces:
CircuitBreakerAspectExt
the Reactor breaker logic support for the spring AOP Conditional on Reactor class existence on
spring class loader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandleReturnType
(Class returnType) handle
(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker, String methodName) handle the Spring web flux (Flux /Mono) return types AOP based into reactor circuit-breaker SeeCircuitBreakerOperator
for details.
-
Constructor Details
-
ReactorCircuitBreakerAspectExt
public ReactorCircuitBreakerAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnType
in interfaceCircuitBreakerAspectExt
- Parameters:
returnType
- the AOP method return type class- Returns:
- boolean if the method has Reactor return type
-
handle
public Object handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker, String methodName) throws Throwable handle the Spring web flux (Flux /Mono) return types AOP based into reactor circuit-breaker SeeCircuitBreakerOperator
for details.- Specified by:
handle
in interfaceCircuitBreakerAspectExt
- Parameters:
proceedingJoinPoint
- Spring AOP proceedingJoinPointcircuitBreaker
- the configured circuitBreakermethodName
- the method name- Returns:
- the result object
- Throws:
Throwable
- exception in case of faulty flow
-