Class RxJava2RateLimiterAspectExt

java.lang.Object
io.github.resilience4j.ratelimiter.configure.RxJava2RateLimiterAspectExt
All Implemented Interfaces:
RateLimiterAspectExt

public class RxJava2RateLimiterAspectExt
extends java.lang.Object
implements RateLimiterAspectExt
the Rx RateLimiter logic support for the spring AOP conditional on the presence of Rx classes on the spring class loader
  • Constructor Summary

    Constructors 
    Constructor Description
    RxJava2RateLimiterAspectExt()  
  • Method Summary

    Modifier and Type Method Description
    boolean canHandleReturnType​(java.lang.Class returnType)  
    java.lang.Object handle​(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, java.lang.String methodName)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • canHandleReturnType

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

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