Optional baseBase delay between retries for exponential backoff algorithm in default retry handler, in milliseconds.
200
Optional controlBase retry delay for OPERATION_LIMIT_EXCEEDED used by default retry handler exponential backoff algorithm. Note that automatic retries for this error only take effect if the timeout used for the operation that caused the error (see timeout and ddlTimeout) is greater than the value of controlOpBaseDelay. Otherwise the operation won't be retried and OPERATION_LIMIT_EXCEEDED will be returned to the application. You may also set this property to null to disable automatic retries for this error (if it is prefferred that application does manual retries for this error).
60000 (1 minute)
Optional handlerRetry handler used. Set this property if you want to use custom retry handler. You may set this to null to disable retries alltogether.
Optional maxMaximum number of retries, including initial API invocation, for default retry handler.
10
Optional secBase delay when waiting for availability of security information as in error code SECURITY_INFO_UNAVAILABLE for default retry handler, in milliseconds.
100
Optional secMaximum number of retries with constant delay when waiting for availability of security information, as in error code SECURITY_INFO_UNAVAILABLE for default retry handler.
10
Generated using TypeDoc
Configuration for operation retries, which is set as retry.
When an operation fails with NoSQLError or its subclass, the driver has an option to retry the operation automatically, transparently to the application. The operation may be retried multiple times until the operation timeout is reached. The driver may only retry the operations that failed with retryable ErrorCode (see errorCode). Whether the operation is retried and how depends on the what RetryHandler is used. Retry handler is an object that provides two properties/methods: doRetry that determines whether the operation should be retried at given time and delay that determines how long to wait between successive retries.
RetryConfig object may contain RetryHandler and applicable parameters customize that retry handler. Unless application sets its own RetryHandler, the driver will use default retry handler which is suitable for most applications. Default RetryHandler works as follows:
Whether the operation is retried depends on:
- Whether the error is retryable as mentioned above. This is the case for
any RetryHandler.  Default RetryHandler has special
handling for INVALID_AUTHORIZATION, see the description
of that error code for details.
- Type of the operation.  In general, only data operations are retried,
not DDL or metadata operations (such as listTables or
getIndexes).  However, if DDL operation caused
OPERATION_LIMIT_EXCEEDED.
the operation will be retried with large delay as described below.
- Whether the limit on the number of retries has been reached as
configured by maxRetries property.
For retry delay, an exponential backoff algorithm is used. The delay starts with baseDelay and then doubles on successive retries. In addition a random value between 0 and baseDelay is added to this result.Exceptions to this are:
You may customize the default retry handler by overriding the values of any properties mentioned above.