public class RestFuture<T> extends Promise<T>
Constructor and Description |
---|
RestFuture(RestAction<T> restAction,
boolean shouldQueue,
okhttp3.RequestBody data,
java.lang.Object rawData,
net.dv8tion.jda.core.requests.Route.CompiledRoute route,
org.apache.commons.collections4.map.CaseInsensitiveMap<java.lang.String,java.lang.String> headers) |
RestFuture(T t) |
RestFuture(java.lang.Throwable t) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterrupt) |
toCompletableFuture
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, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, whenComplete, whenCompleteAsync, whenCompleteAsync
public RestFuture(RestAction<T> restAction, boolean shouldQueue, okhttp3.RequestBody data, java.lang.Object rawData, net.dv8tion.jda.core.requests.Route.CompiledRoute route, org.apache.commons.collections4.map.CaseInsensitiveMap<java.lang.String,java.lang.String> headers)
public RestFuture(T t)
public RestFuture(java.lang.Throwable t)