Share this page

# 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

Name | Description
--- | ---
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();
        }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: