Class ReactorTimeLimiterAspectExt

java.lang.Object
io.github.resilience4j.timelimiter.configure.ReactorTimeLimiterAspectExt
All Implemented Interfaces:
TimeLimiterAspectExt

public class ReactorTimeLimiterAspectExt extends Object implements TimeLimiterAspectExt
  • Constructor Details

    • ReactorTimeLimiterAspectExt

      public ReactorTimeLimiterAspectExt()
  • Method Details

    • canHandleReturnType

      public boolean canHandleReturnType(Class<?> returnType)
      Specified by:
      canHandleReturnType in interface TimeLimiterAspectExt
      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.timelimiter.TimeLimiter timeLimiter, String methodName) throws Throwable
      handle the Spring web flux (Flux /Mono) return types AOP based into reactor time limiter See TimeLimiter for details.
      Specified by:
      handle in interface TimeLimiterAspectExt
      Parameters:
      proceedingJoinPoint - Spring AOP proceedingJoinPoint
      timeLimiter - the configured rateLimiter
      methodName - the method name
      Returns:
      the result object
      Throws:
      Throwable - exception in case of faulty flow