Class BatchMessageSink<T>
java.lang.Object
io.awspring.cloud.sqs.listener.sink.AbstractMessageProcessingPipelineSink<T>
io.awspring.cloud.sqs.listener.sink.BatchMessageSink<T>
- All Implemented Interfaces:
ConfigurableContainerComponent,ObservableComponent,MessageProcessingPipelineSink<T>,MessageSink<T>,TaskExecutorAware,Lifecycle,Phased,SmartLifecycle
MessageSink implementation that emits the whole received batch of messages to the configured
MessageProcessingPipeline.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CompletableFuture<Void>doEmit(Collection<Message<T>> messages, MessageProcessingContext<T> context) Methods inherited from class io.awspring.cloud.sqs.listener.sink.AbstractMessageProcessingPipelineSink
configure, emit, execute, execute, isRunning, logError, logError, setMessagePipeline, setObservationSpecifics, setTaskExecutor, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Constructor Details
-
BatchMessageSink
public BatchMessageSink()
-
-
Method Details
-
doEmit
protected CompletableFuture<Void> doEmit(Collection<Message<T>> messages, MessageProcessingContext<T> context) - Specified by:
doEmitin classAbstractMessageProcessingPipelineSink<T>
-