import { BackoffFunction } from "./BackoffFunction" ; import { defaultBackoffFunction } from "./DefaultRetryConfig" ; export class RetryConfig { private _retryLimit : number ; private _backoffFunction : BackoffFunction ; param retryLimit When there is a failure while executing the transaction like OCC or any other retryable failure, the driver will try running your transaction block again.
    *                   This parameter tells the driver how many times to retry when there are failures. The value must be greater than 0. The default value is 4.
    *                   See  https for more details.
    *
    *  param backoffFunction throws constructor ( retryLimit = 4 , backoffFunction = defaultBackoffFunction ) { if ( retryLimit < 0 ) { throw new RangeError ( "Value for retryLimit cannot be negative." ) ; } this . _retryLimit = retryLimit ; this . _backoffFunction = backoffFunction ; } getRetryLimit ( ) { return this . _retryLimit ; } getBackoffFunction ( ) { return this . _backoffFunction ; } }