Class InstrumentationExecuteOperationParameters
java.lang.Object
graphql.execution.instrumentation.parameters.InstrumentationExecuteOperationParameters
Parameters sent to
Instrumentation
methods-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutionContext
private final InstrumentationState
-
Constructor Summary
ConstructorsModifierConstructorDescriptionInstrumentationExecuteOperationParameters
(ExecutionContext executionContext) private
InstrumentationExecuteOperationParameters
(ExecutionContext executionContext, 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
-
instrumentationState
-
-
Constructor Details
-
InstrumentationExecuteOperationParameters
-
InstrumentationExecuteOperationParameters
private InstrumentationExecuteOperationParameters(ExecutionContext executionContext, InstrumentationState instrumentationState)
-
-
Method Details
-
withNewState
@Deprecated public InstrumentationExecuteOperationParameters 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
-
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)
-