@PublicApi public class InstrumentationFieldParameters extends java.lang.Object
Instrumentation
methodsConstructor and Description |
---|
InstrumentationFieldParameters(ExecutionContext executionContext,
java.util.function.Supplier<ExecutionStepInfo> executionStepInfo) |
Modifier and Type | Method and Description |
---|---|
ExecutionContext |
getExecutionContext() |
ExecutionStepInfo |
getExecutionStepInfo() |
GraphQLFieldDefinition |
getField() |
<T extends InstrumentationState> |
getInstrumentationState()
Deprecated.
state is now passed in direct to instrumentation methods
|
InstrumentationFieldParameters |
withNewState(InstrumentationState instrumentationState)
Deprecated.
state is now passed in direct to instrumentation methods
|
public InstrumentationFieldParameters(ExecutionContext executionContext, java.util.function.Supplier<ExecutionStepInfo> executionStepInfo)
@Deprecated public InstrumentationFieldParameters withNewState(InstrumentationState instrumentationState)
instrumentationState
- the new state for this parameters objectpublic ExecutionContext getExecutionContext()
public GraphQLFieldDefinition getField()
public ExecutionStepInfo getExecutionStepInfo()
@Deprecated public <T extends InstrumentationState> T getInstrumentationState()
Instrumentation.createState(InstrumentationCreateStateParameters)
but now
to save object allocations, the state is passed directly into instrumentation methodsT
- for twoInstrumentation.createState(InstrumentationCreateStateParameters)