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.
Invocation of an explicit declarative messaging batch handler.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(T serviceInstance, MessageBatch<?> messages) Invoke the handler once for the complete immutable batch.
-
Method Details
-
handle
Invoke the handler once for the complete immutable batch.- Parameters:
serviceInstance- intercepted service instancemessages- immutable message batch- Throws:
RuntimeException- if invocation fails
-