Package io.awspring.cloud.sqs.listener
Class QueueAttributes
java.lang.Object
io.awspring.cloud.sqs.listener.QueueAttributes
Queue attributes extracted from SQS, as well as the queue name and url.
- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Constructor Summary
ConstructorsConstructorDescriptionQueueAttributes
(String queueName, String queueUrl, Map<software.amazon.awssdk.services.sqs.model.QueueAttributeName, String> attributes) Create an instance with the provided arguments. -
Method Summary
Modifier and TypeMethodDescriptiongetQueueAttribute
(software.amazon.awssdk.services.sqs.model.QueueAttributeName queueAttributeName) Return a specific attribute for this queue, if present.Return the attributes for this queue.Return the queue name.Return the queue url.
-
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
Return the queue url.- Returns:
- the url.
-
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.
-