Interface HandlerInterceptor.PreparedHandlerFunction

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.PreparedHandlerFunction
Remaining portion of a prepared handler interceptor chain.
  • Method Details

    • apply

      default Object apply(DeserializingMessage message, io.fluxzero.common.handling.HandlerDescriptor handler, BiFunction<Object,Object,Object> combiner)
      Proceeds to the remaining chain with an unchanged message.
      Parameters:
      message - current message
      handler - resolved handler descriptor
      combiner - result combiner
      Returns:
      handling result
    • apply

      Object apply(DeserializingMessage currentMessage, DeserializingMessage nextMessage, io.fluxzero.common.handling.HandlerDescriptor handler, BiFunction<Object,Object,Object> combiner)
      Proceeds to the remaining chain, resolving it again when nextMessage differs from currentMessage.
      Parameters:
      currentMessage - message received by the current interceptor
      nextMessage - message passed to the remainder of the chain
      handler - resolved handler descriptor
      combiner - result combiner
      Returns:
      handling result