Class RxJava2CircuitBreakerAspectExt

java.lang.Object
io.github.resilience4j.circuitbreaker.configure.RxJava2CircuitBreakerAspectExt
All Implemented Interfaces:
CircuitBreakerAspectExt

public class RxJava2CircuitBreakerAspectExt extends 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 Details

    • RxJava2CircuitBreakerAspectExt

      public RxJava2CircuitBreakerAspectExt()
  • Method Details

    • canHandleReturnType

      public boolean canHandleReturnType(Class returnType)
      Specified by:
      canHandleReturnType in interface CircuitBreakerAspectExt
      Parameters:
      returnType - the AOP method return type class
      Returns:
      boolean if the method has Rx java 2 rerun type
    • handle

      public Object handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.circuitbreaker.CircuitBreaker circuitBreaker, String methodName) throws Throwable
      Specified by:
      handle in interface CircuitBreakerAspectExt
      Parameters:
      proceedingJoinPoint - Spring AOP proceedingJoinPoint
      circuitBreaker - the configured circuitBreaker
      methodName - the method name
      Returns:
      the result object
      Throws:
      Throwable - exception in case of faulty flow