Initializes the LrSqsClient for the current Vuser.

public static void initClient (LrAwsRegion awsRegion, String queueUrl)


awsRegionPhysical location of the Amazon cluster. For available values, see LrAwsRegion.
queueUrlURL of the message queue.

Return values

This function does not return any values.

General information

This function initializes an SQS client for the Vuser. You must call this function in order to use the client object. If any other SQS API is called before this function, the called API fails.

It is recommended to call this function in the init section of the Vuser script.

Each Vuser can instantiate only one client at a time. If this function is called more than once in a script, without using the closeClient API in between the initializations, an error is shown in the replay log.


Copy code
public int init() throws Throwable {
        String fifoQueueUrl = "";
        LrAwsRegion region = LrAwsRegion.EU_CENTRAL_1;

        LrSqsClient.initClient(region, fifoQueueUrl);
        return 0;