RetryHandler 클래스
- java.
lang. Object - com.
microsoft. bot. restclient. retry. RetryHandler
- com.
구현
okhttp3입니다. 인터셉터
public final class RetryHandler
implements okhttp3.Interceptor
요청 파이프라인에 배치된 이 인터셉터의 인스턴스는 다시 시도 가능한 오류를 처리합니다.
생성자 요약
| 생성자 | Description |
|---|---|
| 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
Throw:
java.io.IOException
strategy
public RetryStrategy strategy()
반환:
이 처리기에서 사용하는 전략