RetryHandler クラス
- java.
lang. Object - com.
microsoft. bot. restclient. retry. RetryHandler
- com.
実装
okhttp3 を します。インターセプター
public final class RetryHandler
implements okhttp3.Interceptor
要求パイプラインに配置されたこのインターセプターのインスタンスは、再発生するエラーを処理します。
コンストラクターの概要
| コンストラクター | 説明 |
|---|---|
| RetryHandler() |
RetryHandler クラスのインスタンスを初期化しました。 |
| RetryHandler(RetryStrategy retryStrategy) |
RetryHandler クラスのインスタンスを初期化しました。 |
メソッドの概要
| 修飾子と型 | メソッドと説明 |
|---|---|
| okhttp3.Response | intercept(Interceptor.Chain chain) |
|
Retry |
strategy() |
メソッドの継承元: java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
コンストラクターの詳細
RetryHandler
public RetryHandler()
RetryHandler クラスのインスタンスを初期化しました。 指数バックオフに基づく既定の再試行戦略を設定します。
RetryHandler
public RetryHandler(RetryStrategy retryStrategy)
RetryHandler クラスのインスタンスを初期化しました。
パラメーター:
retryStrategy
- 使用する再試行戦略。
メソッドの詳細
intercept
public Response intercept(Interceptor.Chain chain)
パラメーター:
chain
スロー:
java.io.IOException
strategy
public RetryStrategy strategy()
戻り値:
このハンドラーによって使用される戦略