Class SqsEndpoint
java.lang.Object
io.awspring.cloud.sqs.config.AbstractEndpoint
io.awspring.cloud.sqs.config.SqsEndpoint
- All Implemented Interfaces:
Endpoint,HandlerMethodEndpoint
Endpoint implementation for SQS endpoints.
Contains properties that should be mapped from @SqsListener annotations.- Since:
- 3.0
- Author:
- Tomaz Fernandes, Joao Calassio
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Return aSqsEndpoint.SqsEndpointBuilderinstance with the provided queue names.@Nullable AcknowledgementModeReturns the acknowledgement mode configured for this endpoint.@Nullable IntegerSet the maximum concurrent messages that can be processed simultaneously for each queue.@Nullable IntegerReturn the maximum amount of messages that should be returned in a poll.@Nullable DurationReturn the message visibility for this endpoint.@Nullable DurationThe maximum duration to wait for messages in a given poll.Methods inherited from class io.awspring.cloud.sqs.config.AbstractEndpoint
configureListenerMode, createAsyncMessageListenerInstance, createMessageListenerInstance, getBean, getId, getListenerContainerFactoryName, getLogicalNames, getMessageHandlerMethodFactory, setArgumentResolvers, setBean, setHandlerMethodFactory, setMethod, setMethodPayloadTypeInferrer, setupContainer
-
Constructor Details
-
SqsEndpoint
-
-
Method Details
-
builder
Return aSqsEndpoint.SqsEndpointBuilderinstance with the provided queue names.- Returns:
- the builder instance.
-
getMaxConcurrentMessages
Set the maximum concurrent messages that can be processed simultaneously for each queue. Note that if acknowledgement batching is being used, the actual maximum number of messages inflight might be higher.- Returns:
- the maximum number of inflight messages.
-
getPollTimeout
The maximum duration to wait for messages in a given poll.- Returns:
- the poll timeout.
-
getMaxMessagesPerPoll
Return the maximum amount of messages that should be returned in a poll.- Returns:
- the maximum amount of messages.
-
getMessageVisibility
Return the message visibility for this endpoint.- Returns:
- the message visibility.
-
getAcknowledgementMode
Returns the acknowledgement mode configured for this endpoint.- Returns:
- the acknowledgement mode.
-