public abstract class HttpExecutor<R> extends Object implements GraphQLExecutor<R>
| Modifier and Type | Field and Description |
|---|---|
protected ContextFactory<R> |
contextFactory |
protected DataLoaderRegistryFactory |
dataLoaderRegistryFactory |
| Modifier | Constructor and Description |
|---|---|
protected |
HttpExecutor(ContextFactory<R> contextFactory,
DataLoaderRegistryFactory dataLoaderRegistryFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected ApolloMessage |
data(String id,
graphql.ExecutionResult result) |
protected ApolloMessage |
error(String id,
Throwable error) |
Object |
execute(graphql.GraphQL graphQL,
ExecutorParams<R> params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildInput, buildInputprotected final ContextFactory<R> contextFactory
protected final DataLoaderRegistryFactory dataLoaderRegistryFactory
protected HttpExecutor(ContextFactory<R> contextFactory, DataLoaderRegistryFactory dataLoaderRegistryFactory)
public Object execute(graphql.GraphQL graphQL, ExecutorParams<R> params)
execute in interface GraphQLExecutor<R>protected ApolloMessage data(String id, graphql.ExecutionResult result)
protected ApolloMessage error(String id, Throwable error)
Copyright © 2018–2021. All rights reserved.