Class MyInstrumentation

java.lang.Object
graphql.execution.instrumentation.SimplePerformantInstrumentation
org.allGraphQLCases.server.config.MyInstrumentation
All Implemented Interfaces:
graphql.execution.instrumentation.Instrumentation

public class MyInstrumentation extends graphql.execution.instrumentation.SimplePerformantInstrumentation
This class was original copied from this thread, based on graphql-java's TracingInstrumentation.
Then changed to SimplePerformantInstrumentation, as SimpleInstrumentation is now deprecated.
Author:
Joe
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields inherited from class graphql.execution.instrumentation.SimplePerformantInstrumentation

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull CompletableFuture<graphql.ExecutionResult>
    instrumentExecutionResult(graphql.ExecutionResult executionResult, graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters parameters, graphql.execution.instrumentation.InstrumentationState state)
     

    Methods inherited from class graphql.execution.instrumentation.SimplePerformantInstrumentation

    beginExecuteObject, beginExecuteOperation, beginExecution, beginExecutionStrategy, beginFieldCompletion, beginFieldExecution, beginFieldFetch, beginFieldListCompletion, beginParse, beginSubscribedFieldEvent, beginValidation, createState, createStateAsync, instrumentDataFetcher, instrumentDocumentAndVariables, instrumentExecutionContext, instrumentExecutionInput, instrumentSchema

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface graphql.execution.instrumentation.Instrumentation

    beginDeferredField, beginFieldFetching
  • Constructor Details

    • MyInstrumentation

      public MyInstrumentation()
  • Method Details

    • instrumentExecutionResult

      public @NonNull CompletableFuture<graphql.ExecutionResult> instrumentExecutionResult(graphql.ExecutionResult executionResult, graphql.execution.instrumentation.parameters.InstrumentationExecutionParameters parameters, graphql.execution.instrumentation.InstrumentationState state)
      Specified by:
      instrumentExecutionResult in interface graphql.execution.instrumentation.Instrumentation
      Overrides:
      instrumentExecutionResult in class graphql.execution.instrumentation.SimplePerformantInstrumentation