Class RestFuture<T>

  • All Implemented Interfaces:
    java.util.concurrent.CompletionStage<T>, java.util.concurrent.Future<T>

    public class RestFuture<T>
    extends java.util.concurrent.CompletableFuture<T>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture

        java.util.concurrent.CompletableFuture.AsynchronousCompletionTask
    • Constructor Summary

      Constructors 
      Constructor Description
      RestFuture​(java.lang.Throwable t)  
      RestFuture​(net.dv8tion.jda.internal.requests.RestActionImpl<T> restAction, boolean shouldQueue, java.util.function.BooleanSupplier checks, RequestBody data, java.lang.Object rawData, long deadline, boolean priority, net.dv8tion.jda.internal.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 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RestFuture

        public RestFuture​(net.dv8tion.jda.internal.requests.RestActionImpl<T> restAction,
                          boolean shouldQueue,
                          java.util.function.BooleanSupplier checks,
                          RequestBody data,
                          java.lang.Object rawData,
                          long deadline,
                          boolean priority,
                          net.dv8tion.jda.internal.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)
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterrupt)
        Specified by:
        cancel in interface java.util.concurrent.Future<T>
        Overrides:
        cancel in class java.util.concurrent.CompletableFuture<T>