Class ExampleInstrumentationDependingOnContextContributor

java.lang.Object
graphql.execution.instrumentation.SimplePerformantInstrumentation
com.netflix.graphql.dgs.example.shared.instrumentation.ExampleInstrumentationDependingOnContextContributor
All Implemented Interfaces:
graphql.execution.instrumentation.Instrumentation

@Component public class ExampleInstrumentationDependingOnContextContributor extends graphql.execution.instrumentation.SimplePerformantInstrumentation
Example Instrumentation that depends on the fact that ContextContributors have already been invoked. Specifically the ExampleGraphQLContextContributor has affected the contents of the GraphQLContext object and has set the CONTRIBUTOR_ENABLED_CONTEXT_KEY.
  • Field Summary

    Fields inherited from class graphql.execution.instrumentation.SimplePerformantInstrumentation

    INSTANCE
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    graphql.execution.instrumentation.InstrumentationState
    createState(graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters parameters)
     
    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

    beginExecuteOperation, beginExecuteOperation, beginExecution, beginExecution, beginExecutionStrategy, beginExecutionStrategy, beginField, beginField, beginFieldComplete, beginFieldComplete, beginFieldFetch, beginFieldFetch, beginFieldListComplete, beginFieldListComplete, beginParse, beginParse, beginSubscribedFieldEvent, beginSubscribedFieldEvent, beginValidation, beginValidation, createState, instrumentDataFetcher, instrumentDataFetcher, instrumentDocumentAndVariables, instrumentDocumentAndVariables, instrumentExecutionContext, instrumentExecutionContext, instrumentExecutionInput, instrumentExecutionInput, instrumentExecutionResult, instrumentSchema, instrumentSchema

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExampleInstrumentationDependingOnContextContributor

      public ExampleInstrumentationDependingOnContextContributor()
  • Method Details

    • createState

      public graphql.execution.instrumentation.InstrumentationState createState(graphql.execution.instrumentation.parameters.InstrumentationCreateStateParameters parameters)
      Specified by:
      createState in interface graphql.execution.instrumentation.Instrumentation
      Overrides:
      createState in class graphql.execution.instrumentation.SimplePerformantInstrumentation
    • instrumentExecutionResult

      public 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