public class OkResponseCallback
extends java.lang.Object
implements okhttp3.Callback
| Constructor and Description |
|---|
OkResponseCallback(ConnectionProvider connectionProvider,
AttachConfig attachConfig) |
| Modifier and Type | Method and Description |
|---|---|
static void |
delayed(long delay,
java.lang.String name,
java.util.function.Supplier<?> action,
java.util.concurrent.CountDownLatch done) |
ConnectionProvider |
getConnectionProvider() |
void |
onFailure(okhttp3.Call call,
java.io.IOException e) |
void |
onFailure(java.lang.Exception e) |
void |
onResponse(okhttp3.Call call,
okhttp3.Response response) |
public OkResponseCallback(ConnectionProvider connectionProvider, AttachConfig attachConfig)
public void onFailure(@NotNull
okhttp3.Call call,
@NotNull
java.io.IOException e)
onFailure in interface okhttp3.Callbackpublic void onFailure(java.lang.Exception e)
public void onResponse(@NotNull
okhttp3.Call call,
@NotNull
okhttp3.Response response)
throws java.io.IOException
onResponse in interface okhttp3.Callbackjava.io.IOExceptionpublic static void delayed(long delay,
java.lang.String name,
java.util.function.Supplier<?> action,
java.util.concurrent.CountDownLatch done)
public ConnectionProvider getConnectionProvider()