Class AbstractDelegatingMessageListeningSinkAdapter<T>
java.lang.Object
io.awspring.cloud.sqs.listener.sink.adapter.AbstractDelegatingMessageListeningSinkAdapter<T>
- All Implemented Interfaces:
ConfigurableContainerComponent,MessageProcessingPipelineSink<T>,MessageSink<T>,SqsAsyncClientAware,TaskExecutorAware,Lifecycle,Phased,SmartLifecycle
- Direct Known Subclasses:
MessageGroupingSinkAdapter,MessageVisibilityExtendingSinkAdapter
public abstract class AbstractDelegatingMessageListeningSinkAdapter<T>
extends Object
implements MessageProcessingPipelineSink<T>, TaskExecutorAware, SqsAsyncClientAware
MessageProcessingPipelineSink implementation that delegates method invocations to the provided delegate.- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate an instance with the provided delegate. -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(ContainerOptions containerOptions) Configure the component with the providedContainerOptionsinstanceprotected MessageSink<T>booleanvoidsetMessagePipeline(MessageProcessingPipeline<T> messageProcessingPipeline) Set theMessageProcessingPipelineinstance that this sink will emitMessageinstances to.voidsetSqsAsyncClient(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient) Set theSqsAsyncClientinstance.voidsetTaskExecutor(TaskExecutor taskExecutor) Set the task executor.voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.awspring.cloud.sqs.listener.sink.MessageSink
emitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Constructor Details
-
AbstractDelegatingMessageListeningSinkAdapter
Create an instance with the provided delegate.- Parameters:
delegate- the delegate.
-
-
Method Details
-
setMessagePipeline
Description copied from interface:MessageProcessingPipelineSinkSet theMessageProcessingPipelineinstance that this sink will emitMessageinstances to.- Specified by:
setMessagePipelinein interfaceMessageProcessingPipelineSink<T>- Parameters:
messageProcessingPipeline- the pipeline.
-
setTaskExecutor
Description copied from interface:TaskExecutorAwareSet the task executor.- Specified by:
setTaskExecutorin interfaceTaskExecutorAware- Parameters:
taskExecutor- the task executor.
-
setSqsAsyncClient
public void setSqsAsyncClient(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient) Description copied from interface:SqsAsyncClientAwareSet theSqsAsyncClientinstance.- Specified by:
setSqsAsyncClientin interfaceSqsAsyncClientAware- Parameters:
sqsAsyncClient- the instance.
-
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning() -
configure
Description copied from interface:ConfigurableContainerComponentConfigure the component with the providedContainerOptionsinstance- Specified by:
configurein interfaceConfigurableContainerComponent
-
getDelegate
-