Class ReactorTimerAspectExt

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

public class ReactorTimerAspectExt extends Object implements TimerAspectExt
  • Constructor Details

    • ReactorTimerAspectExt

      public ReactorTimerAspectExt()
  • 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 Reactor return type
    • handle

      public Object handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.micrometer.Timer timer, String methodName) throws Throwable
      handle the Spring web flux (Flux /Mono) return types AOP based into reactor timer See Timer for details.
      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