Class RxJava2CircuitBreakerAspectExt
- java.lang.Object
-
- io.github.resilience4j.circuitbreaker.configure.RxJava2CircuitBreakerAspectExt
-
- All Implemented Interfaces:
CircuitBreakerAspectExt
public class RxJava2CircuitBreakerAspectExt extends java.lang.Object implements CircuitBreakerAspectExt
the Rx circuit breaker logic support for the spring AOP conditional on the presence of Rx classes on the spring class loader
-
-
Constructor Summary
Constructors Constructor Description RxJava2CircuitBreakerAspectExt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandleReturnType(java.lang.Class returnType)java.lang.Objecthandle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker, java.lang.String methodName)
-
-
-
Method Detail
-
canHandleReturnType
public boolean canHandleReturnType(java.lang.Class returnType)
- Specified by:
canHandleReturnTypein interfaceCircuitBreakerAspectExt- Parameters:
returnType- the AOP method return type class- Returns:
- boolean if the method has Rx java 2 rerun type
-
handle
public java.lang.Object handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker, java.lang.String methodName) throws java.lang.Throwable- Specified by:
handlein interfaceCircuitBreakerAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointcircuitBreaker- the configured circuitBreakermethodName- the method name- Returns:
- the result object
- Throws:
java.lang.Throwable- exception in case of faulty flow
-
-