[.net programming language only]

Enabling dynamic configuration of WebSphere eXtreme Scale Client for .NET

[Version 8.6.0.2 and later]You can configure WebSphere® eXtreme Scale Client for .NET to dynamically detect modifications that are made to the property values in the client properties file. You do not need to restart the existing connection to the data grid for the changes to take effect.

About this task

You can dynamically configure the requestRetryTimeout property to specify an amount of time (in milliseconds) to continue processing a request after an exception occurs. All of the other properties are read-only. If you change the value of a read-only property, the changes do not take effect and an error is written to the system log files.

Procedure

  1. Set the value of the enableDynamicConfiguration property in your client properties file for WebSphere eXtreme Scale Client for .NET to true.
    [.net programming language only][Version 8.6.0.2 and later]enableDynamicConfiguration
    [.net programming language only][Version 8.6.0.2 and later]When set to true, any changes that are made to the requestRetryTimeout property in the client properties file are detected dynamically. The new property value is used immediately to calculate the new request retry timeout value.

    Default: false

    Valid values: true, false

  2. Update the value of the requestRetryTimeout property in your client properties file.
    [.net programming language only][Java programming language only]requestRetryTimeout
    [.net programming language only][Java programming language only]Specifies how long to continue processing a request (in milliseconds) after an exception occurs.

    Default: -1

    Valid values:
    • A value of 0 indicates that the request should fail fast and skip over the internal retry logic.
    • A value of -1 indicates that the request retry timeout is not set, meaning that the request duration is governed by the transaction timeout. (Default). The following levels of checking the request retry timeout are used to determine the default behavior:
      • Session instance requestRetryTimeout value
      • Client properties file requestRetryTimeout value
      • If neither of the previous values are set, then the lowest value between the transaction timeout value and 30 seconds is selected. For example, if the transaction timeout value has the default value of 10 minutes, then the request times out at 30 seconds. Alternatively, if you set the transaction timeout value to 20 seconds, then the request times out after 20 seconds.
    • A value over 0 indicates the request entry timeout value in milliseconds. Exceptions that are not successfully created are returned. Even when exceptions, such as DuplicateException, are tried again, they are also returned when they do not succeed. The transaction timeout is still used as the maximum time to wait.

Results

You can dynamically update the value of the requestRetryTimeout client property without restarting the connection to the data grid.