Interface FieldFetchingInstrumentationContext
-
- All Superinterfaces:
InstrumentationContext<java.lang.Object>
@PublicSpi public interface FieldFetchingInstrumentationContext extends InstrumentationContext<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static FieldFetchingInstrumentationContextNOOP
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static FieldFetchingInstrumentationContextadapter(@Nullable InstrumentationContext<java.lang.Object> context)static @NotNull FieldFetchingInstrumentationContextnonNullCtx(FieldFetchingInstrumentationContext nullableContext)This creates a no-opInstrumentationContextif the one pass in is nulldefault voidonFetchedValue(java.lang.Object fetchedValue)This is called back with value fetched for the field.-
Methods inherited from interface graphql.execution.instrumentation.InstrumentationContext
onCompleted, onDispatched
-
-
-
-
Field Detail
-
NOOP
static final FieldFetchingInstrumentationContext NOOP
-
-
Method Detail
-
nonNullCtx
@NotNull static @NotNull FieldFetchingInstrumentationContext nonNullCtx(FieldFetchingInstrumentationContext nullableContext)
This creates a no-opInstrumentationContextif the one pass in is null- Parameters:
nullableContext- aInstrumentationContextthat can be null- Returns:
- a non null
InstrumentationContextthat maybe a no-op
-
adapter
static FieldFetchingInstrumentationContext adapter(@Nullable @Nullable InstrumentationContext<java.lang.Object> context)
-
onFetchedValue
default void onFetchedValue(java.lang.Object fetchedValue)
This is called back with value fetched for the field.- Parameters:
fetchedValue- a value that a field'sDataFetcherreturned
-
-