Class RxJava2RetryAspectExt

java.lang.Object
io.github.resilience4j.retry.configure.RxJava2RetryAspectExt
All Implemented Interfaces:
RetryAspectExt

public class RxJava2RetryAspectExt extends Object implements RetryAspectExt
the Rx Retry logic support for the spring AOP conditional on the presence of Rx classes on the spring class loader
  • Constructor Details

    • RxJava2RetryAspectExt

      public RxJava2RetryAspectExt()
  • Method Details

    • canHandleReturnType

      public boolean canHandleReturnType(Class returnType)
      Specified by:
      canHandleReturnType in interface RetryAspectExt
      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.retry.Retry retry, String methodName) throws Throwable
      Specified by:
      handle in interface RetryAspectExt
      Parameters:
      proceedingJoinPoint - Spring AOP proceedingJoinPoint
      retry - the configured Retry
      methodName - the method name
      Returns:
      the result object
      Throws:
      Throwable - exception in case of faulty flow