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

com.networknt.graphql.router.ExecutionStrategyProvider Maven / Gradle / Ivy

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy