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>

public class RestFuture<T> extends CompletableFuture<T>
Implementation of CompletableFuture used for RestAction.submit().
  • 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

      public RestFuture(T t)
    • RestFuture

      public RestFuture(Throwable t)
  • Method Details