Amazon.DynamoDBv2.Internal.DynamoDBRetryPolicy.pauseExponentially C# (CSharp) Method

pauseExponentially() private method

Override the pausing function so retries would happen more frequent then the default operation.
private pauseExponentially ( int retries ) : void
retries int Current number of retries.
return void
        private void pauseExponentially(int retries)
        {
            int delay;
               
            if (retries <= 0)       delay = 0;
            else if (retries < 20)  delay = Convert.ToInt32(Math.Pow(2, retries - 1) * 50.0);
            else                    delay = Int32.MaxValue;

            if (retries > 0 && (delay > MaxBackoffInMilliseconds || delay <= 0))
                delay = MaxBackoffInMilliseconds;
            Amazon.Util.AWSSDKUtils.Sleep(delay);
        }
    }