Share via


RetryOptions interface

表示在 Azure Cosmos DB 資料庫服務中使用節流要求所分派的重試原則。

屬性

fixedRetryIntervalInMilliseconds

已修正重試間隔,以毫秒為單位,以在每次重試之間等候,忽略回應傳回的 retryAfter。

maxRetryAttemptCount

要求要執行的重試次數上限。 預設值 9。

maxWaitTimeInSeconds

重試發生時,等候要求的最大等候時間,以秒為單位。 預設值 30 秒。

屬性詳細資料

fixedRetryIntervalInMilliseconds

已修正重試間隔,以毫秒為單位,以在每次重試之間等候,忽略回應傳回的 retryAfter。

fixedRetryIntervalInMilliseconds: number

屬性值

number

maxRetryAttemptCount

要求要執行的重試次數上限。 預設值 9。

maxRetryAttemptCount: number

屬性值

number

maxWaitTimeInSeconds

重試發生時,等候要求的最大等候時間,以秒為單位。 預設值 30 秒。

maxWaitTimeInSeconds: number

屬性值

number