Class QueueAttributes

java.lang.Object
io.awspring.cloud.sqs.listener.QueueAttributes

public class QueueAttributes extends Object
Queue attributes extracted from SQS, as well as the queue name and url.
Since:
3.0
Author:
Tomaz Fernandes
  • Constructor Details

    • QueueAttributes

      public QueueAttributes(String queueName, String queueUrl, Map<software.amazon.awssdk.services.sqs.model.QueueAttributeName,String> attributes)
      Create an instance with the provided arguments.
      Parameters:
      queueName - the queue name.
      queueUrl - the queue url.
      attributes - the queue attributes retrieved from SQS.
  • Method Details

    • getQueueUrl

      public String getQueueUrl()
      Return the queue url.
      Returns:
      the url.
    • getQueueName

      public String getQueueName()
      Return the queue name.
      Returns:
      the queue name.
    • getQueueAttributes

      public Map<software.amazon.awssdk.services.sqs.model.QueueAttributeName,String> getQueueAttributes()
      Return the attributes for this queue.
      Returns:
      the queue attributes.
    • getQueueAttribute

      @Nullable public String getQueueAttribute(software.amazon.awssdk.services.sqs.model.QueueAttributeName queueAttributeName)
      Return a specific attribute for this queue, if present.
      Parameters:
      queueAttributeName - the attribute name.
      Returns:
      the queue attribute, or null if no such attribute is present.