Class ReactorRetryAspectExt
java.lang.Object
io.github.resilience4j.retry.configure.ReactorRetryAspectExt
- All Implemented Interfaces:
RetryAspectExt
the Reactor Retry logic support for the spring AOP Conditional on Reactor class existence on
spring class loader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleReturnType(Class returnType) handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.retry.Retry retry, String methodName) handle the Spring web flux (Flux /Mono) return types AOP based into reactor retry SeeRetryfor details.
-
Constructor Details
-
ReactorRetryAspectExt
public ReactorRetryAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnTypein interfaceRetryAspectExt- 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.retry.Retry retry, String methodName) throws Throwable handle the Spring web flux (Flux /Mono) return types AOP based into reactor retry SeeRetryfor details.- Specified by:
handlein interfaceRetryAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointretry- the configured retrymethodName- the method name- Returns:
- the result object
- Throws:
Throwable- exception in case of faulty flow
-