com.networknt.graphql.router.ExecutionStrategyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-router Show documentation
Show all versions of graphql-router Show documentation
A route handler for GraphQL endpoint
The newest version!
package com.networknt.graphql.router;
import graphql.execution.ExecutionStrategy;
/**
* ExecutionStrategyProvider interface that is used to inject execution strategy
* implementations into the framework. The service module will pass these on to
* the graphql-java framework.
*
* @author Logi Ragnarsson
*/
public interface ExecutionStrategyProvider {
/**
* Return an execution strategy to use for queries or null to use the default.
* @return ExecutionStrategy a query execution strategy
*/
ExecutionStrategy getQueryExecutionStrategy();
/**
* Return an execution strategy to use for mutations or null to use the default.
* @return ExecutionStrategy a mutation execution strategy
*/
ExecutionStrategy getMutationExecutionStrategy();
/**
* Return an execution strategy to use for subscriptions or null to use the default.
* @return ExecutionStrategy a subscription execution strategy
*/
ExecutionStrategy getSubscriptionExecutionStrategy();
}