Class RxJava2BulkheadAspectExt

  • All Implemented Interfaces:
    BulkheadAspectExt

    public class RxJava2BulkheadAspectExt
    extends java.lang.Object
    implements BulkheadAspectExt
    the Rx bulkhead logic support for the spring AOP conditional on the presence of Rx classes on the spring class loader
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canHandleReturnType​(java.lang.Class returnType)  
      java.lang.Object handle​(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint, io.github.resilience4j.bulkhead.Bulkhead bulkhead, java.lang.String methodName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RxJava2BulkheadAspectExt

        public RxJava2BulkheadAspectExt()
    • Method Detail

      • canHandleReturnType

        public boolean canHandleReturnType​(java.lang.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 java.lang.Object handle​(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint,
                                       io.github.resilience4j.bulkhead.Bulkhead bulkhead,
                                       java.lang.String methodName)
                                throws java.lang.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:
        java.lang.Throwable - exception in case of faulty flow