Interface HandlerInterceptor.PreparedHandlerInterceptor

Enclosing interface:
HandlerInterceptor
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 static interface HandlerInterceptor.PreparedHandlerInterceptor
A handler-method-specific interceptor plan. Plans are created once and may be invoked concurrently.
  • Field Details

  • Method Details

    • interceptHandling

      Intercepts one handling operation using previously prepared handler metadata.
      Parameters:
      message - current message
      handler - the resolved per-message invoker or reusable handler method
      combiner - result combiner supplied to the handler
      next - the remaining prepared handling chain
      Returns:
      the handling result
    • interceptHandling

      default Function<DeserializingMessage, Object> interceptHandling(Function<DeserializingMessage, Object> function, HandlerInvoker invoker)
      Adapts this prepared interceptor to the original function-based interceptor contract.
      Parameters:
      function - next handling function
      invoker - resolved handler invoker
      Returns:
      an intercepted handling function
    • supportsHandlerMethod

      default boolean supportsHandlerMethod()
      Whether this plan can safely wrap a reusable HandlerMethod. Implementations returning true must depend only on the supplied descriptor and message, not on mutable state of a per-message invoker.
      Returns:
      true when the plan supports reusable handler methods