Share this page

# LrSqsClient.closeClient

Closes the LrSqsClient for the current Vuser.

`public static void closeClient()`

## Return values

This function does not return any values.

## General information

This function closes the LrSqsClient that was previously initialized for the Vuser. After this function is called, the client is no longer available.

If the client was not previously initialized, a RuntimeException is thrown.

To ensure that the client instance is not used after closure, it is recommended to use this method in the end section of the Vuser script.

## Example

Copy code

    public int end() throws Throwable {
            LrSqsClient.closeClient();
            return 0;
        }

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