Class InstrumentationExecutionStrategyParameters
java.lang.Object
graphql.execution.instrumentation.parameters.InstrumentationExecutionStrategyParameters
Parameters sent to
Instrumentation methods-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutionContextprivate final ExecutionStrategyParametersprivate final InstrumentationState -
Constructor Summary
ConstructorsModifierConstructorDescriptionInstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters) privateInstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, InstrumentationState instrumentationState) -
Method Summary
Modifier and TypeMethodDescription<T extends InstrumentationState>
TDeprecated.state is now passed in direct to instrumentation methodswithNewState(InstrumentationState instrumentationState) Deprecated.state is now passed in direct to instrumentation methods
-
Field Details
-
executionContext
-
executionStrategyParameters
-
instrumentationState
-
-
Constructor Details
-
InstrumentationExecutionStrategyParameters
public InstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters) -
InstrumentationExecutionStrategyParameters
private InstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, InstrumentationState instrumentationState)
-
-
Method Details
-
withNewState
@Deprecated public InstrumentationExecutionStrategyParameters 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
-
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)
-