Class MaxQueryComplexityInstrumentation

All Implemented Interfaces:
Instrumentation

@PublicApi public class MaxQueryComplexityInstrumentation extends SimplePerformantInstrumentation
Prevents execution if the query complexity is greater than the specified maxComplexity.

Use the Function<QueryComplexityInfo, Boolean> parameter to supply a function to perform a custom action when the max complexity is exceeded. If the function returns true a AbortExecutionException is thrown.