Class InstrumentationFieldCompleteParameters
java.lang.Object
graphql.execution.instrumentation.parameters.InstrumentationFieldCompleteParameters
Parameters sent to
Instrumentation methods-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutionContextprivate final Supplier<ExecutionStepInfo> private final ExecutionStrategyParametersprivate final Objectprivate final InstrumentationState -
Constructor Summary
ConstructorsConstructorDescriptionInstrumentationFieldCompleteParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, Supplier<ExecutionStepInfo> executionStepInfo, Object fetchedValue) InstrumentationFieldCompleteParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, Supplier<ExecutionStepInfo> executionStepInfo, Object fetchedValue, InstrumentationState instrumentationState) -
Method Summary
Modifier and TypeMethodDescriptiongetField()<T extends InstrumentationState>
TDeprecated.state is now passed in direct to instrumentation methodsDeprecated.withNewState(InstrumentationState instrumentationState) Deprecated.state is now passed in direct to instrumentation methods
-
Field Details
-
executionContext
-
executionStepInfo
-
fetchedValue
-
instrumentationState
-
executionStrategyParameters
-
-
Constructor Details
-
InstrumentationFieldCompleteParameters
public InstrumentationFieldCompleteParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, Supplier<ExecutionStepInfo> executionStepInfo, Object fetchedValue) -
InstrumentationFieldCompleteParameters
InstrumentationFieldCompleteParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, Supplier<ExecutionStepInfo> executionStepInfo, Object fetchedValue, InstrumentationState instrumentationState)
-
-
Method Details
-
withNewState
@Deprecated public InstrumentationFieldCompleteParameters withNewState(InstrumentationState instrumentationState) Deprecated.state is now passed in direct to instrumentation methodsReturns a cloned parameters object with the new state- Parameters:
instrumentationState- the new state for this parameters object- Returns:
- a new parameters object with the new state
-
getExecutionContext
-
getExecutionStrategyParameters
-
getField
-
getTypeInfo
Deprecated. -
getExecutionStepInfo
-
getFetchedValue
-
getInstrumentationState
Deprecated.state is now passed in direct to instrumentation methodsPreviously the instrumentation parameters had access to the state created viaInstrumentation.createState(InstrumentationCreateStateParameters)but now to save object allocations, the state is passed directly into instrumentation methods- Type Parameters:
T- for two- Returns:
- the state created previously during a call to
Instrumentation.createState(InstrumentationCreateStateParameters)
-