T - Type returned when a Response is get.public class OkHttpFuture<T> extends CompletableFuture<T>
CompletableFuture.AsynchronousCompletionTask| Modifier and Type | Field and Description |
|---|---|
static ResponseConverter<okhttp3.Response> |
GET_RESPONSE
A converter returning the response itself.
|
| Constructor and Description |
|---|
OkHttpFuture(okhttp3.Call call)
Creates a future with no converter.
|
OkHttpFuture(okhttp3.Call call,
ResponseConverter<T> converter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, 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 static final ResponseConverter<okhttp3.Response> GET_RESPONSE
public OkHttpFuture(okhttp3.Call call)
call - The call that must be executed. Can not be nullpublic OkHttpFuture(okhttp3.Call call,
ResponseConverter<T> converter)
Copyright © 2016–2021. All rights reserved.