Class ReactorTimeLimiterAspectExt
java.lang.Object
io.github.resilience4j.timelimiter.configure.ReactorTimeLimiterAspectExt
- All Implemented Interfaces:
TimeLimiterAspectExt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleReturnType(Class<?> returnType) handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.timelimiter.TimeLimiter timeLimiter, String methodName) handle the Spring web flux (Flux /Mono) return types AOP based into reactor time limiter SeeTimeLimiterfor details.
-
Constructor Details
-
ReactorTimeLimiterAspectExt
public ReactorTimeLimiterAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnTypein interfaceTimeLimiterAspectExt- 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 SeeTimeLimiterfor details.- Specified by:
handlein interfaceTimeLimiterAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointtimeLimiter- the configured rateLimitermethodName- the method name- Returns:
- the result object
- Throws:
Throwable- exception in case of faulty flow
-