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 theSqsAsyncOperations
interface.Create the template with the provided options, exposing only the sync methods contained in theSqsOperations
interface.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 theMessagingMessageConverter
to be used by the template.sqsAsyncClient
(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient) Set theSqsAsyncClient
to be used by theSqsTemplate
.
-
Method Details
-
sqsAsyncClient
SqsTemplateBuilder sqsAsyncClient(software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient) Set theSqsAsyncClient
to be used by theSqsTemplate
.- Parameters:
sqsAsyncClient
- the instance.- Returns:
- the builder.
-
messageConverter
SqsTemplateBuilder messageConverter(MessagingMessageConverter<software.amazon.awssdk.services.sqs.model.Message> messageConverter) Set theMessagingMessageConverter
to 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
- aSqsMessagingMessageConverter
consumer.- Returns:
- the builder.
-
configure
Configure options for the template.- Parameters:
options
- aSqsTemplateOptions
consumer.- Returns:
- the builder.
-
build
SqsTemplate build()Create the template with the provided options, exposing both sync and async methods.- Returns:
- the
SqsTemplate
instance.
-
buildAsyncTemplate
SqsAsyncOperations buildAsyncTemplate()Create the template with the provided options, exposing only the async methods contained in theSqsAsyncOperations
interface.- Returns:
- the
SqsTemplate
instance.
-
buildSyncTemplate
SqsOperations buildSyncTemplate()Create the template with the provided options, exposing only the sync methods contained in theSqsOperations
interface.- Returns:
- the
SqsTemplate
instance.
-