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 voidcompleteFailedFuture(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.Objectproceed(org.aopalliance.intercept.MethodInvocation invocation)
-
Constructor Details
-
AbstractMethodInterceptor
public AbstractMethodInterceptor()
-
-
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)
-