Package net.dv8tion.jda.core.requests
Class RestFuture<T>
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<T>
-
- net.dv8tion.jda.core.utils.Promise<T>
-
- net.dv8tion.jda.core.requests.RestFuture<T>
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<T>
,java.util.concurrent.Future<T>
,RequestFuture<T>
public class RestFuture<T> extends Promise<T>
-
-
Constructor Summary
Constructors Constructor Description RestFuture(java.lang.Throwable t)
RestFuture(RestAction<T> restAction, boolean shouldQueue, java.util.function.BooleanSupplier checks, 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterrupt)
-
Methods inherited from class net.dv8tion.jda.core.utils.Promise
toCompletableFuture
-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.CompletionStage
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
-
Methods inherited from interface net.dv8tion.jda.core.requests.RequestFuture
getNow, getNumberOfDependents, isCompletedExceptionally, join
-
-
-
-
Constructor Detail
-
RestFuture
public RestFuture(RestAction<T> restAction, boolean shouldQueue, java.util.function.BooleanSupplier checks, 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
public RestFuture(T t)
-
RestFuture
public RestFuture(java.lang.Throwable t)
-
-