Class RxJava2RateLimiterAspectExt
java.lang.Object
io.github.resilience4j.spring6.ratelimiter.configure.RxJava2RateLimiterAspectExt
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleReturnType(Class returnType) handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.ratelimiter.RateLimiter rateLimiter, String methodName)
-
Constructor Details
-
RxJava2RateLimiterAspectExt
public RxJava2RateLimiterAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnTypein interfaceRateLimiterAspectExt- 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.ratelimiter.RateLimiter rateLimiter, String methodName) throws Throwable - Specified by:
handlein interfaceRateLimiterAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointrateLimiter- the configured rateLimitermethodName- the method name- Returns:
- the result object
- Throws:
Throwable- exception in case of faulty flow
-