Class SimplePerformantInstrumentation

java.lang.Object
graphql.execution.instrumentation.SimplePerformantInstrumentation
All Implemented Interfaces:
Instrumentation
Direct Known Subclasses:
FieldValidationInstrumentation, MaxQueryComplexityInstrumentation, MaxQueryDepthInstrumentation, TracingInstrumentation

@PublicApi public class SimplePerformantInstrumentation extends Object implements Instrumentation
An implementation of Instrumentation that does nothing. It can be used as a base for derived classes where you only implement the methods you want to. The reason this class is designated as more performant is that it does not delegate back to the deprecated methods and allocate a new state object per call.

This behavior was left in place for backwards compatibility reasons inside Instrumentation and SimpleInstrumentation but has not been done in this class since no existing classes could have derived from it. If you want more performant behavior on methods you don't implement then this is the base class to use, since it will not delegate back to old methods and cause a new state to be allocated.