Class RxJava3BulkheadAspectExt

java.lang.Object
io.github.resilience4j.spring6.bulkhead.configure.RxJava3BulkheadAspectExt
All Implemented Interfaces:
BulkheadAspectExt

public class RxJava3BulkheadAspectExt extends Object implements BulkheadAspectExt
the Rx bulkhead logic support for the spring AOP conditional on the presence of Rx classes on the spring class loader
  • Constructor Details

    • RxJava3BulkheadAspectExt

      public RxJava3BulkheadAspectExt()
  • Method Details

    • canHandleReturnType

      public boolean canHandleReturnType(Class returnType)
      Specified by:
      canHandleReturnType in interface BulkheadAspectExt
      Parameters:
      returnType - the AOP method return type class
      Returns:
      boolean if the method has Rx java 3 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 interface BulkheadAspectExt
      Parameters:
      proceedingJoinPoint - Spring AOP proceedingJoinPoint
      bulkhead - the configured bulkhead
      methodName - the method name
      Returns:
      the result object
      Throws:
      Throwable - exception in case of faulty flow