Class InstrumentationFieldCompleteParameters
- java.lang.Object
-
- graphql.execution.instrumentation.parameters.InstrumentationFieldCompleteParameters
-
@PublicApi public class InstrumentationFieldCompleteParameters extends java.lang.Object
Parameters sent toInstrumentation
methods
-
-
Constructor Summary
Constructors Constructor Description InstrumentationFieldCompleteParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, java.util.function.Supplier<ExecutionStepInfo> executionStepInfo, java.lang.Object fetchedValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionContext
getExecutionContext()
ExecutionStepInfo
getExecutionStepInfo()
ExecutionStrategyParameters
getExecutionStrategyParameters()
java.lang.Object
getFetchedValue()
GraphQLFieldDefinition
getField()
<T extends InstrumentationState>
TgetInstrumentationState()
Deprecated.state is now passed in direct to instrumentation methodsExecutionStepInfo
getTypeInfo()
Deprecated.InstrumentationFieldCompleteParameters
withNewState(InstrumentationState instrumentationState)
Deprecated.state is now passed in direct to instrumentation methods
-
-
-
Constructor Detail
-
InstrumentationFieldCompleteParameters
public InstrumentationFieldCompleteParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, java.util.function.Supplier<ExecutionStepInfo> executionStepInfo, java.lang.Object fetchedValue)
-
-
Method Detail
-
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
public ExecutionContext getExecutionContext()
-
getExecutionStrategyParameters
public ExecutionStrategyParameters getExecutionStrategyParameters()
-
getField
public GraphQLFieldDefinition getField()
-
getTypeInfo
@Deprecated public ExecutionStepInfo getTypeInfo()
Deprecated.
-
getExecutionStepInfo
public ExecutionStepInfo getExecutionStepInfo()
-
getFetchedValue
public java.lang.Object getFetchedValue()
-
getInstrumentationState
@Deprecated public <T extends InstrumentationState> T 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)
-
-