共用方式為


StorageRetryOptions interface

記憶體 Blob 重試選項介面。

屬性

maxRetryDelayInMs

自選。 指定重試作業之前允許的最大延遲時間(預設值為 120s 或 120 * 1000 毫秒)。 如果您指定 0,則也必須為 retryDelayInMs 指定 0。

maxTries

自選。 嘗試次數上限,預設值為 4。 值為 1 表示 1 次嘗試,且不會重試。 小於 1 的值表示預設重試次數。

retryDelayInMs

自選。 指定重試作業之前要使用的延遲量(預設值為 4 或 4 * 1000 毫秒)。 延遲會增加 (指數或線性方式),每次重試最多由 maxRetryDelayInMs 指定的最大值。 如果您指定 0,則也必須為 maxRetryDelayInMs 指定 0。

retryPolicyType

自選。 StorageRetryPolicyType,預設值為指數重試原則。

secondaryHost

如果指定 secondaryHost,將會針對此主機嘗試重試。 如果 secondaryHost 未定義(預設值),則不會對另一部主機重試作業。

注意:設定此欄位之前,請確定您已瞭解在 https://docs.microsoft.com/en-us/azure/storage/common/storage-designing-ha-apps-with-ragrs 讀取過時和可能不一致數據的問題

tryTimeoutInMs

自選。 指出任何 HTTP 要求單次嘗試所允許的毫秒時間上限。 值為零或未定義表示 SDK 用戶端上沒有預設逾時,將會使用 Azure 記憶體伺服器的預設逾時原則。

請參閱 https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations

屬性詳細資料

maxRetryDelayInMs

自選。 指定重試作業之前允許的最大延遲時間(預設值為 120s 或 120 * 1000 毫秒)。 如果您指定 0,則也必須為 retryDelayInMs 指定 0。

maxRetryDelayInMs?: number

屬性值

number

maxTries

自選。 嘗試次數上限,預設值為 4。 值為 1 表示 1 次嘗試,且不會重試。 小於 1 的值表示預設重試次數。

maxTries?: number

屬性值

number

retryDelayInMs

自選。 指定重試作業之前要使用的延遲量(預設值為 4 或 4 * 1000 毫秒)。 延遲會增加 (指數或線性方式),每次重試最多由 maxRetryDelayInMs 指定的最大值。 如果您指定 0,則也必須為 maxRetryDelayInMs 指定 0。

retryDelayInMs?: number

屬性值

number

retryPolicyType

自選。 StorageRetryPolicyType,預設值為指數重試原則。

retryPolicyType?: StorageRetryPolicyType

屬性值

secondaryHost

如果指定 secondaryHost,將會針對此主機嘗試重試。 如果 secondaryHost 未定義(預設值),則不會對另一部主機重試作業。

注意:設定此欄位之前,請確定您已瞭解在 https://docs.microsoft.com/en-us/azure/storage/common/storage-designing-ha-apps-with-ragrs 讀取過時和可能不一致數據的問題

secondaryHost?: string

屬性值

string

tryTimeoutInMs

自選。 指出任何 HTTP 要求單次嘗試所允許的毫秒時間上限。 值為零或未定義表示 SDK 用戶端上沒有預設逾時,將會使用 Azure 記憶體伺服器的預設逾時原則。

請參閱 https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations

tryTimeoutInMs?: number

屬性值

number