RetryParams 類別
- java.
lang. Object - com.
microsoft. bot. connector. authentication. RetryParams
- com.
public class RetryParams
重試的狀態。
欄位摘要
| 修飾詞與類型 | 欄位與描述 |
|---|---|
| static final int | MAX_RETRIES |
建構函式摘要
| 建構函式 | Description |
|---|---|
| RetryParams() |
默認重試選項。 |
| RetryParams(long withRetryAfter) |
以指定的延遲重試 |
方法摘要
| 修飾詞與類型 | 方法與描述 |
|---|---|
|
static
Retry |
defaultBackOff(int retryCount)
協助程式使用預設輪詢時間建立 Retry |
| long |
getRetryAfter()
重試延遲。 |
| boolean |
getShouldRetry()
指出是否應該重試。 |
| void |
setRetryAfter(long withRetryAfter)
設定重試延遲。 |
| void |
setShouldRetry(boolean withShouldRetry)
設定是否應該重試。 |
|
static
Retry |
stopRetrying()
協助程式建立重試 |
方法繼承來源 java.lang.Object
欄位詳細資料
MAX_RETRIES
public static final int MAX_RETRIES
建構函式詳細資料
RetryParams
public RetryParams()
默認重試選項。
RetryParams
public RetryParams(long withRetryAfter)
具有指定延遲的 RetryParams。
參數:
方法詳細資料
defaultBackOff
public static RetryParams defaultBackOff(int retryCount)
協助程式使用預設輪詢時間建立 RetryParams。
參數:
傳回:
getRetryAfter
public long getRetryAfter()
重試延遲。
傳回:
getShouldRetry
public boolean getShouldRetry()
指出是否應該重試。
傳回:
setRetryAfter
public void setRetryAfter(long withRetryAfter)
設定重試延遲。
參數:
setShouldRetry
public void setShouldRetry(boolean withShouldRetry)
設定是否應該重試。
參數:
stopRetrying
public static RetryParams stopRetrying()
協助程式,以 false 重試建立 RetryParams。
傳回: