Class SqsEndpoint

java.lang.Object
io.awspring.cloud.sqs.config.AbstractEndpoint
io.awspring.cloud.sqs.config.SqsEndpoint
All Implemented Interfaces:
Endpoint, HandlerMethodEndpoint

public class SqsEndpoint extends AbstractEndpoint
Endpoint implementation for SQS endpoints. Contains properties that should be mapped from @SqsListener annotations.
Since:
3.0
Author:
Tomaz Fernandes, Joao Calassio
  • Constructor Details

  • Method Details

    • builder

      public static SqsEndpoint.SqsEndpointBuilder builder()
      Return a SqsEndpoint.SqsEndpointBuilder instance with the provided queue names.
      Returns:
      the builder instance.
    • getMaxConcurrentMessages

      @Nullable public Integer 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

      @Nullable public Duration getPollTimeout()
      The maximum duration to wait for messages in a given poll.
      Returns:
      the poll timeout.
    • getMaxMessagesPerPoll

      @Nullable public Integer getMaxMessagesPerPoll()
      Return the maximum amount of messages that should be returned in a poll.
      Returns:
      the maximum amount of messages.
    • getMessageVisibility

      @Nullable public Duration getMessageVisibility()
      Return the message visibility for this endpoint.
      Returns:
      the message visibility.
    • getAcknowledgementMode

      @Nullable public AcknowledgementMode getAcknowledgementMode()
      Returns the acknowledgement mode configured for this endpoint.
      Returns:
      the acknowledgement mode.