Class RxJava2BulkheadAspectExt
java.lang.Object
io.github.resilience4j.spring6.bulkhead.configure.RxJava2BulkheadAspectExt
- All Implemented Interfaces:
BulkheadAspectExt
the Rx bulkhead logic support for the spring AOP conditional on the presence of Rx classes on the
spring class loader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleReturnType(Class returnType) handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.bulkhead.Bulkhead bulkhead, String methodName)
-
Constructor Details
-
RxJava2BulkheadAspectExt
public RxJava2BulkheadAspectExt()
-
-
Method Details
-
canHandleReturnType
- Specified by:
canHandleReturnTypein interfaceBulkheadAspectExt- 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.bulkhead.Bulkhead bulkhead, String methodName) throws Throwable - Specified by:
handlein interfaceBulkheadAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointbulkhead- the configured bulkheadmethodName- the method name- Returns:
- the result object
- Throws:
Throwable- exception in case of faulty flow
-