Package net.dv8tion.jda.api.requests
Class RestFuture<T>
java.lang.Object
java.util.concurrent.CompletableFuture<T>
net.dv8tion.jda.api.requests.RestFuture<T>
- Type Parameters:
T
- The result type
- All Implemented Interfaces:
CompletionStage<T>
,Future<T>
Implementation of
CompletableFuture
used for RestAction.submit()
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask
-
Constructor Summary
ConstructorDescriptionRestFuture
(net.dv8tion.jda.internal.requests.RestActionImpl<T> restAction, boolean shouldQueue, BooleanSupplier checks, okhttp3.RequestBody data, Object rawData, long deadline, boolean priority, Route.CompiledRoute route, org.apache.commons.collections4.map.CaseInsensitiveMap<String, String> headers) RestFuture
(T t) -
Method Summary
Methods inherited from class java.util.concurrent.CompletableFuture
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, whenCompleteAsync
-
Constructor Details
-
RestFuture
public RestFuture(net.dv8tion.jda.internal.requests.RestActionImpl<T> restAction, boolean shouldQueue, BooleanSupplier checks, okhttp3.RequestBody data, Object rawData, long deadline, boolean priority, Route.CompiledRoute route, org.apache.commons.collections4.map.CaseInsensitiveMap<String, String> headers) -
RestFuture
-
RestFuture
-
-
Method Details