Class ReactorBulkheadAspectExt

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

public class ReactorBulkheadAspectExt extends Object implements BulkheadAspectExt
the Reactor bulkhead logic support for the spring AOP Conditional on Reactor class existence on spring class loader
  • Constructor Details

    • ReactorBulkheadAspectExt

      public ReactorBulkheadAspectExt()
  • 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 Reactor return type
    • handle

      public Object handle(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.bulkhead.Bulkhead bulkhead, String methodName) throws Throwable
      handle the Spring web flux (Flux /Mono) return types AOP based into reactor bulk head See Bulkhead for details.
      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