All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.execution.FutureExecutionResult Maven / Gradle / Ivy

package graphql.kickstart.execution;

import graphql.ExecutionResult;
import graphql.kickstart.execution.input.GraphQLInvocationInput;
import java.util.List;
import java.util.concurrent.CompletableFuture;

public interface FutureExecutionResult {

  static FutureExecutionResult single(
      GraphQLInvocationInput invocationInput, CompletableFuture single) {
    return new FutureSingleExecutionResult(invocationInput, single);
  }

  static FutureExecutionResult batched(
      GraphQLInvocationInput invocationInput, CompletableFuture> batched) {
    return new FutureBatchedExecutionResult(invocationInput, batched);
  }

  static FutureExecutionResult error(GraphQLErrorQueryResult result) {
    return new FutureErrorExecutionResult(result);
  }

  CompletableFuture thenApplyQueryResult();

  GraphQLInvocationInput getInvocationInput();

  void cancel();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy