Class InstrumentationExecuteOperationParameters
- java.lang.Object
-
- graphql.execution.instrumentation.parameters.InstrumentationExecuteOperationParameters
-
@PublicApi public class InstrumentationExecuteOperationParameters extends java.lang.Object
Parameters sent toInstrumentation
methods
-
-
Constructor Summary
Constructors Constructor Description InstrumentationExecuteOperationParameters(ExecutionContext executionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionContext
getExecutionContext()
<T extends InstrumentationState>
TgetInstrumentationState()
Deprecated.state is now passed in direct to instrumentation methodsInstrumentationExecuteOperationParameters
withNewState(InstrumentationState instrumentationState)
Deprecated.state is now passed in direct to instrumentation methods
-
-
-
Constructor Detail
-
InstrumentationExecuteOperationParameters
public InstrumentationExecuteOperationParameters(ExecutionContext executionContext)
-
-
Method Detail
-
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
public ExecutionContext getExecutionContext()
-
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)
-
-