Package io.awspring.cloud.sqs.config
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Return aSqsEndpoint.SqsEndpointBuilder
instance with the provided queue names.Set the maximum concurrent messages that can be processed simultaneously for each queue.Return the maximum amount of messages that should be returned in a poll.Return the message visibility for this endpoint.The maximum duration to wait for messages in a given poll.Methods inherited from class io.awspring.cloud.sqs.config.AbstractEndpoint
configureListenerMode, createAsyncMessageListenerInstance, createMessageListenerInstance, getId, getListenerContainerFactoryName, getLogicalNames, setBean, setHandlerMethodFactory, setMethod, setupContainer
-
Constructor Details
-
SqsEndpoint
-
-
Method Details
-
builder
Return aSqsEndpoint.SqsEndpointBuilder
instance 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.
-