Class ExecutionResultInstrumentationContextAdapter
- java.lang.Object
-
- graphql.execution.instrumentation.adapters.ExecutionResultInstrumentationContextAdapter
-
- All Implemented Interfaces:
InstrumentationContext<java.lang.Object>
public class ExecutionResultInstrumentationContextAdapter extends java.lang.Object implements InstrumentationContext<java.lang.Object>
A class to help adapt oldExecutionResult
based InstrumentationContext from the newerObject
based ones.
-
-
Constructor Summary
Constructors Constructor Description ExecutionResultInstrumentationContextAdapter(InstrumentationContext<ExecutionResult> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCompleted(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 dispatched
-
-
-
Constructor Detail
-
ExecutionResultInstrumentationContextAdapter
public ExecutionResultInstrumentationContextAdapter(InstrumentationContext<ExecutionResult> 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.lang.Object>
-
onCompleted
public void onCompleted(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.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
-
-