public final class RetryAndFollowUpInterceptor extends Object implements Interceptor
IOException if the call was canceled.Interceptor.Chain| Constructor and Description |
|---|
RetryAndFollowUpInterceptor(OkHttpClient client,
boolean forWebSocket) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Immediately closes the socket connection if it's currently held.
|
Response |
intercept(Interceptor.Chain chain) |
boolean |
isCanceled() |
void |
setCallStackTrace(Object callStackTrace) |
StreamAllocation |
streamAllocation() |
public RetryAndFollowUpInterceptor(OkHttpClient client, boolean forWebSocket)
public void cancel()
This method is safe to be called concurrently, but provides limited guarantees. If a transport layer connection has been established (such as a HTTP/2 stream) that is terminated. Otherwise if a socket connection is being established, that is terminated.
public boolean isCanceled()
public void setCallStackTrace(Object callStackTrace)
public StreamAllocation streamAllocation()
public Response intercept(Interceptor.Chain chain) throws IOException
intercept in interface InterceptorIOExceptionCopyright © 2017. All Rights Reserved.