Interface Interception.Interceptor

All Known Subinterfaces:
Interception.ElementInterceptor
All Known Implementing Classes:
FtSupport.AsyncMethod, FtSupport.BulkheadMethod, FtSupport.CircuitBreakerMethod, FtSupport.FallbackMethod, FtSupport.RetryMethod, FtSupport.TimeoutMethod
Enclosing class:
Interception

@Contract public static interface Interception.Interceptor
Implementors of this contract must be Service.Named according to the Interception.Intercepted annotation they support.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents the next in line for interception, terminating with a call to the service instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    <V> V
    Called during interception of the target V.
  • Method Details

    • proceed

      <V> V proceed(InterceptionContext ctx, Interception.Interceptor.Chain<V> chain, Object... args) throws Exception
      Called during interception of the target V. The implementation typically should finish with the call to Interception.Interceptor.Chain.proceed(Object[]).
      Type Parameters:
      V - the return value type (or Void for void method elements)
      Parameters:
      ctx - the invocation context
      chain - the chain to call proceed on
      args - the arguments to the call
      Returns:
      the return value to the caller
      Throws:
      Exception - if there are any checked exceptions thrown by the underlying method, or any runtime exception thrown