Class ReactorTimerAspectExt
java.lang.Object
io.github.resilience4j.spring6.micrometer.configure.ReactorTimerAspectExt
- All Implemented Interfaces:
TimerAspectExt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleReturnType(Class<?> returnType) handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.micrometer.Timer timer, String methodName) handle the Spring web flux (Flux /Mono) return types AOP based into reactor timer SeeTimerfor details.
-
Constructor Details
-
ReactorTimerAspectExt
public ReactorTimerAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnTypein interfaceTimerAspectExt- 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.micrometer.Timer timer, String methodName) throws Throwable handle the Spring web flux (Flux /Mono) return types AOP based into reactor timer SeeTimerfor details.- Specified by:
handlein interfaceTimerAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointtimer- the configured timermethodName- the method name- Returns:
- the result object
- Throws:
Throwable- exception in case of faulty flow
-