Class ExecuteObjectInstrumentationContextAdapter
- java.lang.Object
-
- graphql.execution.instrumentation.adapters.ExecuteObjectInstrumentationContextAdapter
-
- All Implemented Interfaces:
ExecuteObjectInstrumentationContext
,InstrumentationContext<java.util.Map<java.lang.String,java.lang.Object>>
public class ExecuteObjectInstrumentationContextAdapter extends java.lang.Object implements ExecuteObjectInstrumentationContext
A class to help adapt oldExecutionResult
based ExecutionStrategyInstrumentationContext from the newerMap
based ones.
-
-
Field Summary
-
Fields inherited from interface graphql.execution.instrumentation.ExecuteObjectInstrumentationContext
NOOP
-
-
Constructor Summary
Constructors Constructor Description ExecuteObjectInstrumentationContextAdapter(ExecutionStrategyInstrumentationContext delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCompleted(java.util.Map<java.lang.String,java.lang.Object> result, java.lang.Throwable t)
This is invoked when the instrumentation step is fully completedvoid
onDispatched()
This is invoked when the instrumentation step is initially dispatchedvoid
onFieldValuesException()
void
onFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList)
-
-
-
Constructor Detail
-
ExecuteObjectInstrumentationContextAdapter
public ExecuteObjectInstrumentationContextAdapter(ExecutionStrategyInstrumentationContext delegate)
-
-
Method Detail
-
onDispatched
public void onDispatched()
Description copied from interface:InstrumentationContext
This is invoked when the instrumentation step is initially dispatched- Specified by:
onDispatched
in interfaceInstrumentationContext<java.util.Map<java.lang.String,java.lang.Object>>
-
onCompleted
public void onCompleted(java.util.Map<java.lang.String,java.lang.Object> result, java.lang.Throwable t)
Description copied from interface:InstrumentationContext
This is invoked when the instrumentation step is fully completed- Specified by:
onCompleted
in interfaceInstrumentationContext<java.util.Map<java.lang.String,java.lang.Object>>
- Parameters:
result
- the result of the step (which may be null)t
- this exception will be non null if an exception was thrown during the step
-
onFieldValuesInfo
public void onFieldValuesInfo(java.util.List<FieldValueInfo> fieldValueInfoList)
- Specified by:
onFieldValuesInfo
in interfaceExecuteObjectInstrumentationContext
-
onFieldValuesException
public void onFieldValuesException()
- Specified by:
onFieldValuesException
in interfaceExecuteObjectInstrumentationContext
-
-