Property RetryHandler
RetryHandler
Gets or sets the handler for operation retries.
Declaration
public IRetryHandler RetryHandler { get; set; }
Property Value
Type | Description |
---|---|
IRetryHandler | The handler for operation retries. If not set, the default instance of NoSQLRetryHandler is used. |
Remarks
You may either instantiate NoSQLRetryHandler or provide your own implementation of IRetryHandler interface. The instance of NoSQLRetryHandler may be customized with various parameters. If this property is not set, the driver will use an instance of NoSQLRetryHandler with default parameters.
When using JSON configuration file, you may specify an instance of NoSQLRetryHandler by providing a JSON object containing its parameters, as the example shows.
Examples
Specifying RetryHandler in a JSON configuration.{
"Region": "AP_HYDERABAD_1",
...
"RetryHandler": {
"MaxRetryAttempts": 20,
"BaseDelay": 500
}
...
}