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

graphql.execution.ExecutionIdProvider Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.execution;

import graphql.PublicSpi;

/**
 * A provider of {@link ExecutionId}s
 */
@PublicSpi
public interface ExecutionIdProvider {

    ExecutionIdProvider DEFAULT_EXECUTION_ID_PROVIDER = (query, operationName, context) -> ExecutionId.generate();


    /**
     * Allows provision of a unique identifier per query execution.
     *
     * @param query         the query to be executed
     * @param operationName thr name of the operation
     * @param context       the context object passed to the query
     *
     * @return a non null {@link ExecutionId}
     */
    ExecutionId provide(String query, String operationName, Object context);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy