Class AbstractMethodInterceptor

java.lang.Object
io.github.resilience4j.ratpack.internal.AbstractMethodInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
Direct Known Subclasses:
BulkheadMethodInterceptor, CircuitBreakerMethodInterceptor, RateLimiterMethodInterceptor, RetryMethodInterceptor, TimeLimiterMethodInterceptor

public abstract class AbstractMethodInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractMethodInterceptor()  
  • Method Summary

    Modifier and Type Method Description
    protected void completeFailedFuture​(java.lang.Throwable throwable, RecoveryFunction<?> fallbackMethod, java.util.concurrent.CompletableFuture promise)  
    protected RecoveryFunction<?> createRecoveryFunction​(org.aopalliance.intercept.MethodInvocation invocation, java.lang.String fallback)  
    protected java.lang.Object proceed​(org.aopalliance.intercept.MethodInvocation invocation)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.aopalliance.intercept.MethodInterceptor

    invoke
  • Constructor Details

  • Method Details

    • proceed

      @Nullable protected java.lang.Object proceed​(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable
      Throws:
      java.lang.Throwable
    • completeFailedFuture

      protected void completeFailedFuture​(java.lang.Throwable throwable, RecoveryFunction<?> fallbackMethod, java.util.concurrent.CompletableFuture promise)
    • createRecoveryFunction

      @Nullable protected RecoveryFunction<?> createRecoveryFunction​(org.aopalliance.intercept.MethodInvocation invocation, java.lang.String fallback)