graphql.kickstart.execution.instrumentation.TrackingApproach Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-kickstart-javax Show documentation
Show all versions of graphql-java-kickstart-javax Show documentation
relay.js-compatible GraphQL servlet
The newest version!
package graphql.kickstart.execution.instrumentation;
import graphql.execution.ExecutionId;
import graphql.execution.instrumentation.ExecutionStrategyInstrumentationContext;
import graphql.execution.instrumentation.InstrumentationContext;
import graphql.execution.instrumentation.InstrumentationState;
import graphql.execution.instrumentation.parameters.InstrumentationExecutionStrategyParameters;
import graphql.execution.instrumentation.parameters.InstrumentationFieldFetchParameters;
public interface TrackingApproach extends InstrumentationState {
/**
* Handles creating any state for DataLoaderDispatcherInstrumentation
*
* @param executionId the execution to create state for.
* @return individual state, if any for the execution.
*/
InstrumentationState createState(ExecutionId executionId);
/** Dispatch dataloaders and clean up state. */
void dispatch();
/**
* Handles approach specific logic for DataLoaderDispatcherInstrumentation.
*
* @param parameters parameters supplied to DataLoaderDispatcherInstrumentation
* @return the instrumented context
*/
ExecutionStrategyInstrumentationContext beginExecutionStrategy(
InstrumentationExecutionStrategyParameters parameters);
/**
* Handles approach specific logic for DataLoaderDispatcherInstrumentation.
*
* @param parameters parameters supplied to DataLoaderDispatcherInstrumentation
* @return the instrumented context
*/
InstrumentationContext