Class RxJava2TimerAspectExt

java.lang.Object
io.github.resilience4j.spring6.micrometer.configure.RxJava2TimerAspectExt
All Implemented Interfaces:
TimerAspectExt

public class RxJava2TimerAspectExt extends Object implements TimerAspectExt
  • Constructor Details

    • RxJava2TimerAspectExt

      public RxJava2TimerAspectExt()
  • Method Details

    • canHandleReturnType

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