class HttpCallback extends CompletableFuture<okhttp3.Response> implements okhttp3.Callback
CompletableFuture.AsynchronousCompletionTask| 构造器和说明 |
|---|
HttpCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onFailure(okhttp3.Call call,
IOException e) |
void |
onResponse(okhttp3.Call call,
okhttp3.Response response) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncpublic void onFailure(@NotNull
okhttp3.Call call,
@NotNull
IOException e)
onFailure 在接口中 okhttp3.Callbackpublic void onResponse(@NotNull
okhttp3.Call call,
@NotNull
okhttp3.Response response)
throws IOException
onResponse 在接口中 okhttp3.CallbackIOExceptionCopyright © 2022. All rights reserved.