Class RxJava2BulkheadAspectExt

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

public class RxJava2BulkheadAspectExt 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

    • RxJava2BulkheadAspectExt

      public RxJava2BulkheadAspectExt()
  • 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 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 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