Interface HandlerInterceptor.PreparedHandlerInputInterceptor

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.PreparedHandlerInputInterceptor
Intercepts one prepared local invocation using a lazy HandlerInput.

Implementations are cached and may be invoked concurrently. Calling HandlerInput.getMessage() is supported, but creates the complete message and forfeits the allocation benefit for that invocation.

  • Field Details

  • Method Details

    • interceptHandling

      Object interceptHandling(io.fluxzero.common.handling.HandlerInput<DeserializingMessage> input, io.fluxzero.common.handling.HandlerDescriptor handler, HandlerInterceptor.PreparedHandlerInputFunction next)
      Intercepts one local handler invocation.
      Parameters:
      input - the current lazy handler input
      handler - stable information about the selected handler method
      next - the remaining interceptor chain and handler invocation
      Returns:
      the handling result