Class RxJava2BulkheadAspectExt
java.lang.Object
io.github.resilience4j.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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canHandleReturnType
(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:
canHandleReturnType
in 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:
handle
in interfaceBulkheadAspectExt
- Parameters:
proceedingJoinPoint
- Spring AOP proceedingJoinPointbulkhead
- the configured bulkheadmethodName
- the method name- Returns:
- the result object
- Throws:
Throwable
- exception in case of faulty flow
-