Interface MessagingEntryPoint.Handler<T>

Type Parameters:
T - service type
Enclosing class:
MessagingEntryPoint
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 MessagingEntryPoint.Handler<T>
Invocation of a declarative messaging handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(T serviceInstance, Message<?> message)
    Invoke the handler for one incoming message.
  • Method Details

    • handle

      Optional<Message<?>> handle(T serviceInstance, Message<?> message)
      Invoke the handler for one incoming message.
      Parameters:
      serviceInstance - intercepted service instance
      message - incoming message
      Returns:
      produced message for a processor, or empty for a terminal consumer
      Throws:
      RuntimeException - if invocation fails