Class InstrumentationExecutionStrategyParameters
- java.lang.Object
-
- graphql.execution.instrumentation.parameters.InstrumentationExecutionStrategyParameters
-
@PublicApi public class InstrumentationExecutionStrategyParameters extends java.lang.Object
Parameters sent toInstrumentationmethods
-
-
Field Summary
Fields Modifier and Type Field Description private ExecutionContextexecutionContextprivate ExecutionStrategyParametersexecutionStrategyParametersprivate InstrumentationStateinstrumentationState
-
Constructor Summary
Constructors Modifier Constructor Description InstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters)privateInstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, InstrumentationState instrumentationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionContextgetExecutionContext()ExecutionStrategyParametersgetExecutionStrategyParameters()<T extends InstrumentationState>
TgetInstrumentationState()Deprecated.state is now passed in direct to instrumentation methodsInstrumentationExecutionStrategyParameterswithNewState(InstrumentationState instrumentationState)Deprecated.state is now passed in direct to instrumentation methods
-
-
-
Field Detail
-
executionContext
private final ExecutionContext executionContext
-
executionStrategyParameters
private final ExecutionStrategyParameters executionStrategyParameters
-
instrumentationState
private final InstrumentationState instrumentationState
-
-
Constructor Detail
-
InstrumentationExecutionStrategyParameters
public InstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters)
-
InstrumentationExecutionStrategyParameters
private InstrumentationExecutionStrategyParameters(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters, InstrumentationState instrumentationState)
-
-
Method Detail
-
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
public ExecutionContext getExecutionContext()
-
getExecutionStrategyParameters
public ExecutionStrategyParameters getExecutionStrategyParameters()
-
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)
-
-