Class RxJava2RetryAspectExt
java.lang.Object
io.github.resilience4j.retry.configure.RxJava2RetryAspectExt
- All Implemented Interfaces:
RetryAspectExt
the Rx Retry logic support for the spring AOP conditional on the presence of Rx classes on the
spring class loader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandleReturnType
(Class returnType) handle
(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.retry.Retry retry, String methodName)
-
Constructor Details
-
RxJava2RetryAspectExt
public RxJava2RetryAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnType
in interfaceRetryAspectExt
- 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.retry.Retry retry, String methodName) throws Throwable - Specified by:
handle
in interfaceRetryAspectExt
- Parameters:
proceedingJoinPoint
- Spring AOP proceedingJoinPointretry
- the configured RetrymethodName
- the method name- Returns:
- the result object
- Throws:
Throwable
- exception in case of faulty flow
-