LrSqsClient.listDeadLetterSourceQueues
Lists the queues that have the LrSqsClient's current queue set as their dead-letter queue.
public static LrSqsQueuesList listDeadLetterSourceQueues()
public static LrSqsQueuesList listDeadLetterSourceQueues(int maxResults)
public static LrSqsQueuesList listDeadLetterSourceQueues(int maxResults, String nextToken)
public static LrSqsQueuesList listDeadLetterSourceQueues(String nextToken)
Arguments
Name | Description |
---|---|
maxResults | The maximum number of queues to list. |
nextToken | The pagination token. |
Return values
This API returns an LrSqsQueuesList object.
Example
public void TestListDeadLetter()
{
LrSqsClient.initClient(region, "https://sqs.eu-central-1.amazonaws.com/123456789/jsmith-sqs0-dead-letter");
LrSqsQueuesList response = LrSqsClient.listDeadLetterSourceQueues();
for (String queueUrl : response.queueUrls())
{
lr.log_message("DLQ Source: " + queueUrl);
}
response = LrSqsClient.listDeadLetterSourceQueues(10, response.nextToken());
response = LrSqsClient.listDeadLetterSourceQueues(response.nextToken());
LrSqsClient.closeClient();
}