Package io.awspring.cloud.sqs.operations
Interface SqsTemplateBuilder
public interface SqsTemplateBuilder
Builder interface for creating a
SqsTemplate instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create the template with the provided options, exposing both sync and async methods.Create the template with the provided options, exposing only the async methods contained in theSqsAsyncOperationsinterface.Create the template with the provided options, exposing only the sync methods contained in theSqsOperationsinterface.configure(Consumer<SqsTemplateOptions> options) Configure options for the template.configureDefaultConverter(Consumer<SqsMessagingMessageConverter> messageConverterConfigurer) Configure the default message converter.messageConverter(MessagingMessageConverter<software.amazon.awssdk.services.sqs.model.Message> messageConverter) Set theMessagingMessageConverterto be used by the template.sqsAsyncClient(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient) Set theSqsAsyncClientto be used by theSqsTemplate.
-
Method Details
-
sqsAsyncClient
SqsTemplateBuilder sqsAsyncClient(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient) Set theSqsAsyncClientto be used by theSqsTemplate.- Parameters:
sqsAsyncClient- the instance.- Returns:
- the builder.
-
messageConverter
SqsTemplateBuilder messageConverter(MessagingMessageConverter<software.amazon.awssdk.services.sqs.model.Message> messageConverter) Set theMessagingMessageConverterto be used by the template.- Parameters:
messageConverter- the converter.- Returns:
- the builder.
-
configureDefaultConverter
SqsTemplateBuilder configureDefaultConverter(Consumer<SqsMessagingMessageConverter> messageConverterConfigurer) Configure the default message converter.- Parameters:
messageConverterConfigurer- aSqsMessagingMessageConverterconsumer.- Returns:
- the builder.
-
configure
Configure options for the template.- Parameters:
options- aSqsTemplateOptionsconsumer.- Returns:
- the builder.
-
build
SqsTemplate build()Create the template with the provided options, exposing both sync and async methods.- Returns:
- the
SqsTemplateinstance.
-
buildAsyncTemplate
SqsAsyncOperations buildAsyncTemplate()Create the template with the provided options, exposing only the async methods contained in theSqsAsyncOperationsinterface.- Returns:
- the
SqsTemplateinstance.
-
buildSyncTemplate
SqsOperations buildSyncTemplate()Create the template with the provided options, exposing only the sync methods contained in theSqsOperationsinterface.- Returns:
- the
SqsTemplateinstance.
-