Interface InterceptorChain

All Known Implementing Classes:
DefaultInterceptorChain
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InterceptorChain
The interceptor chain manages the flow of a message through a chain of interceptors and ultimately to the message handler. Interceptors may continue processing via this chain by calling the proceed() method. Alternatively, they can block processing by returning without calling either of these methods.
Since:
0.5
Author:
Allard Buijze
  • Method Summary

    Modifier and Type
    Method
    Description
    Signals the Interceptor Chain to continue processing the message.
  • Method Details

    • proceed

      Object proceed() throws Exception
      Signals the Interceptor Chain to continue processing the message.
      Returns:
      The return value of the message processing
      Throws:
      Exception - any exceptions thrown by interceptors or the message handler