@PublicApi public class MaxQueryDepthInstrumentation extends NoOpInstrumentation
NoOpInstrumentation.NoOpInstrumentationContext<T>
INSTANCE
Constructor and Description |
---|
MaxQueryDepthInstrumentation(int maxDepth) |
Modifier and Type | Method and Description |
---|---|
InstrumentationContext<java.util.List<ValidationError>> |
beginValidation(InstrumentationValidationParameters parameters)
This is called just before the parsed query Document is validated and when this step finishes the
InstrumentationContext.onEnd(Object, Throwable)
will be called indicating that the step has finished. |
beginDataFetch, beginExecution, beginExecutionStrategy, beginField, beginFieldFetch, beginParse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createState, instrumentDataFetcher, instrumentExecutionResult
public InstrumentationContext<java.util.List<ValidationError>> beginValidation(InstrumentationValidationParameters parameters)
Instrumentation
InstrumentationContext.onEnd(Object, Throwable)
will be called indicating that the step has finished.beginValidation
in interface Instrumentation
beginValidation
in class NoOpInstrumentation
parameters
- the parameters to this stepInstrumentationContext
object that will be called back when the step ends