Interface MessagingEntryPoint.BatchHandler<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.BatchHandler<T>
Invocation of an explicit declarative messaging batch handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(T serviceInstance, MessageBatch<?> messages)
    Invoke the handler once for the complete immutable batch.
  • Method Details

    • handle

      void handle(T serviceInstance, MessageBatch<?> messages)
      Invoke the handler once for the complete immutable batch.
      Parameters:
      serviceInstance - intercepted service instance
      messages - immutable message batch
      Throws:
      RuntimeException - if invocation fails