LrSqsClient.listQueues

Lists the queues available in the current LrSqsClient's region.

public static LrSqsQueuesList listQueues(String queueNamePrefix)

public static LrSqsQueuesList listQueues(String queueNamePrefix , int maxResults)

public static LrSqsQueuesList listQueues(String queueNamePrefix , int maxResults, String nextToken)

Arguments

NameDescription
queueNamePrefix The API looks for queues beginning with this prefix.
maxResults The maximum number of queues to list.
nextToken The pagination token.

Return values

This API returns an LrSqsQueuesList object.

General information

To get all available queues, the queueNamePrefix argument must be an empty string.

Example

Copy code
public void testGetQueues(){
        
        LrSqsClient.initClient(region, "");
        
        LrSqsQueuesList response = LrSqsClient.listQueues("");
        for (String queueUrl : response.queueUrls())
        {
            lr.log_message("QUEUE: " + queueUrl);
        }
        LrSqsClient.closeClient();
    }