Class MaxQueryDepthInstrumentation

All Implemented Interfaces:
Instrumentation

@PublicApi public class MaxQueryDepthInstrumentation extends SimplePerformantInstrumentation
Prevents execution if the query depth is greater than the specified maxDepth.

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