Interface MessageSink<T>
- All Superinterfaces:
ConfigurableContainerComponent
- All Known Subinterfaces:
MessageProcessingPipelineSink<T>
- All Known Implementing Classes:
AbstractDelegatingMessageListeningSinkAdapter,AbstractMessageProcessingPipelineSink,BatchMessageSink,FanOutMessageSink,MessageGroupingSinkAdapter,MessageVisibilityExtendingSinkAdapter,OrderedMessageSink
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Component that handles the flow of
Messages.
This interface is non-opinionated regarding strategies or the output to which messages will be emitted to.
A MessageProcessingContext can be used to pass additional state to the implementation.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptionemit(Collection<Message<T>> messages, MessageProcessingContext<T> context) Emit the providedMessageinstances to the providedAsyncMessageListener.Methods inherited from interface io.awspring.cloud.sqs.listener.ConfigurableContainerComponent
configure
-
Method Details
-
emit
Emit the providedMessageinstances to the providedAsyncMessageListener.- Parameters:
messages- the messages to emit.- Returns:
- a collection of
CompletableFutureinstances, each representing the completion signal of a single message processing.
-