LrSqsClient

The LrSqsClient class is the main class that is used to interact with the SQS queue. It can be used to send or receive messages and to interact with the queue.

The LrSqsClient class includes the following methods.

    Note:
  • All methods are static, so to use this class you must initialize the client through the initClient API and not via the new keyword.
  • You cannot use multiple instances of LrSqsClient in a thread concurrently. Therefore, a second initialization without a previous closure of the client produces an error.
LrSqsClient.addMessageToBatchAdds a message to a container that stores messages to be sent.
LrSqsClient.addMessageToBatchExAdds a message with multiple attributes to a container that stores messages to be sent.
LrSqsClient.addMessageToChangeVisibilityBatchAdds a message to the current batch, to be used for the ChangeMessageVisibilityBatch request.
LrSqsClient.addPermissionAdds an SQS permission to the LrSqsClient's current queue.
LrSqsClient.addReceiptHandleToChangeVisibilityBatchAdds a receipt handle to the current batch, to be used for the ChangeMessageVisibilityBatch request.
LrSqsClient.changeMessageVisibilityChanges a message's visibility timeout.
LrSqsClient.changeMessageVisibilityBatchSends the request of visibility change for all messages in the designated container.
LrSqsClient.closeClientCloses the LrSqsClient for the current Vuser.
LrSqsClient.createMessageAttributeValueBinaryCreates a binary attribute value that can be assigned to a message.
LrSqsClient.createMessageAttributeValueDoubleCreates a double attribute value that can be assigned to a message.
LrSqsClient.createMessageAttributeValueIntCreates an integer attribute value that can be assigned to a message.
LrSqsClient.createMessageAttributeValueStringCreates a string attribute value that can be assigned to a message.
LrSqsClient.deleteMessageDeletes a message from the queue.
LrSqsClient.deleteMessageBatchDeletes a message batch from the queue.
LrSqsClient.getQueueAttributesRetrieves the specified attributes for the LrSqsClient's current queue.
LrSqsClient.getQueueUrlRetrieves the queue URL for the specified queue.
LrSqsClient.initChangeMessageVisibilityBatchInitializes the container for a ChangeMessageVisibilityBatch request.
LrSqsClient.initClientInitializes the LrSqsClient for the current Vuser.
LrSqsClient.initMessageBatchInitializes the container used to store messages to be sent.
LrSqsClient.listDeadLetterSourceQueuesLists the queues that have the LrSqsClient's current queue set as their dead-letter queue.
LrSqsClient.listQueuesLists the queues available in the current LrSqsClient's region.
LrSqsClient.listQueueTagsRetrieves all tags for the LrSqsClient's current queue.
LrSqsClient.purgeQueueDeletes all messages from the queue.
LrSqsClient.receiveMessageReceives messages from the queue.
LrSqsClient.receiveMessagesExReceives messages from the queue according to the arguments provided.
LrSqsClient.removePermissionRemoves an SQS permission from the LrSqsClient's current queue.
LrSqsClient.resetQueueUrlReplaces the current queue URL with a new URL.
LrSqsClient.sendMessageSends a message to the queue.
LrSqsClient.sendMessageBatchSends the batch of messages currently stored in the message container.
LrSqsClient.sendMessageExSends a message with multiple attributes to the queue.
LrSqsClient.setQueueAttributesSets the specified attributes for the LrSqsClient's current queue.
LrSqsClient.tagQueueAdds tags to the LrSqsClient's current queue.
LrSqsClient.untagQueueRemoves tags from the LrSqsClient's current queue.