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:
Exceptions to this are:
You may customize the default retry handler by overriding the values of any properties mentioned above.