Class RxJava2TimeLimiterAspectExt
java.lang.Object
io.github.resilience4j.spring6.timelimiter.configure.RxJava2TimeLimiterAspectExt
- 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)
-
Constructor Details
-
RxJava2TimeLimiterAspectExt
public RxJava2TimeLimiterAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnTypein interfaceTimeLimiterAspectExt- 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.timelimiter.TimeLimiter timeLimiter, String methodName) throws Throwable - Specified by:
handlein interfaceTimeLimiterAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointtimeLimiter- the configured timeLimitermethodName- the method name- Returns:
- the result object
- Throws:
Throwable- exception in case of faulty flow
-