Class UniDataFetcher<K,T>
- java.lang.Object
-
- io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher<K,T>
-
- io.smallrye.graphql.execution.datafetcher.AbstractAsyncDataFetcher<K,T>
-
- io.smallrye.graphql.execution.datafetcher.UniDataFetcher<K,T>
-
- Type Parameters:
K-T-
- All Implemented Interfaces:
graphql.schema.DataFetcher<T>,PlugableBatchableDataFetcher<K,T>,PlugableDataFetcher<T>,org.dataloader.BatchLoaderWithContext<K,T>
public class UniDataFetcher<K,T> extends AbstractAsyncDataFetcher<K,T>
Handle Async calls with Uni- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
-
Field Summary
-
Fields inherited from class io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher
argumentHelper, batchLoaderHelper, errorResultHelper, eventEmitter, fieldHelper, measurementIds, metricsEmitter, operation, operationInvoker, type
-
-
Constructor Summary
Constructors Constructor Description UniDataFetcher(Operation operation, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.smallrye.mutiny.Uni<List<T>>handleUserBatchLoad(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments)protected io.smallrye.mutiny.Uni<?>handleUserMethodCall(graphql.schema.DataFetchingEnvironment dfe, Object[] transformedArguments)-
Methods inherited from class io.smallrye.graphql.execution.datafetcher.AbstractAsyncDataFetcher
invokeAndTransform, invokeBatch, invokeFailure
-
Methods inherited from class io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher
get, load
-
-
-
-
Method Detail
-
handleUserMethodCall
protected io.smallrye.mutiny.Uni<?> handleUserMethodCall(graphql.schema.DataFetchingEnvironment dfe, Object[] transformedArguments) throws Exception- Specified by:
handleUserMethodCallin classAbstractAsyncDataFetcher<K,T>- Throws:
Exception
-
handleUserBatchLoad
protected io.smallrye.mutiny.Uni<List<T>> handleUserBatchLoad(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments) throws Exception
- Specified by:
handleUserBatchLoadin classAbstractAsyncDataFetcher<K,T>- Throws:
Exception
-
-