Class ReactorBulkheadAspectExt
- java.lang.Object
-
- io.github.resilience4j.bulkhead.configure.ReactorBulkheadAspectExt
-
- All Implemented Interfaces:
BulkheadAspectExt
public class ReactorBulkheadAspectExt extends java.lang.Object implements BulkheadAspectExt
the Reactor bulkhead logic support for the spring AOP Conditional on Reactor class existence on spring class loader
-
-
Constructor Summary
Constructors Constructor Description ReactorBulkheadAspectExt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandleReturnType(java.lang.Class returnType)java.lang.Objecthandle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.bulkhead.Bulkhead bulkhead, java.lang.String methodName)handle the Spring web flux (Flux /Mono) return types AOP based into reactor bulk head SeeBulkheadfor details.
-
-
-
Method Detail
-
canHandleReturnType
public boolean canHandleReturnType(java.lang.Class returnType)
- Specified by:
canHandleReturnTypein interfaceBulkheadAspectExt- Parameters:
returnType- the AOP method return type class- Returns:
- boolean if the method has Reactor return type
-
handle
public java.lang.Object handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.bulkhead.Bulkhead bulkhead, java.lang.String methodName) throws java.lang.Throwablehandle the Spring web flux (Flux /Mono) return types AOP based into reactor bulk head SeeBulkheadfor details.- Specified by:
handlein interfaceBulkheadAspectExt- Parameters:
proceedingJoinPoint- Spring AOP proceedingJoinPointbulkhead- the configured bulkheadmethodName- the method name- Returns:
- the result object
- Throws:
java.lang.Throwable- exception in case of faulty flow
-
-