Class AbstractAsyncDataFetcher<K,T>
- java.lang.Object
-
- io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher<K,T>
-
- io.quarkus.smallrye.graphql.runtime.spi.datafetcher.AbstractAsyncDataFetcher<K,T>
-
- All Implemented Interfaces:
graphql.schema.DataFetcher<T>,io.smallrye.graphql.execution.datafetcher.PlugableBatchableDataFetcher<K,T>,io.smallrye.graphql.execution.datafetcher.PlugableDataFetcher<T>,org.dataloader.BatchLoaderWithContext<K,T>
- Direct Known Subclasses:
QuarkusCompletionStageDataFetcher,QuarkusUniDataFetcher
public abstract class AbstractAsyncDataFetcher<K,T> extends io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher<K,T>
-
-
Constructor Summary
Constructors Constructor Description AbstractAsyncDataFetcher(io.smallrye.graphql.schema.model.Operation operation, io.smallrye.graphql.schema.model.Type type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract io.smallrye.mutiny.Uni<List<T>>handleUserBatchLoad(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments)protected abstract io.smallrye.mutiny.Uni<?>handleUserMethodCall(graphql.schema.DataFetchingEnvironment dfe, Object[] transformedArguments)protected <O> OinvokeAndTransform(io.smallrye.graphql.api.Context c, graphql.schema.DataFetchingEnvironment dfe, graphql.execution.DataFetcherResult.Builder<Object> resultBuilder, Object[] transformedArguments)protected CompletionStage<List<T>>invokeBatch(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments)protected <O> OinvokeFailure(graphql.execution.DataFetcherResult.Builder<Object> resultBuilder)
-
-
-
Method Detail
-
invokeAndTransform
protected <O> O invokeAndTransform(io.smallrye.graphql.api.Context c, graphql.schema.DataFetchingEnvironment dfe, graphql.execution.DataFetcherResult.Builder<Object> resultBuilder, Object[] transformedArguments) throws Exception
-
handleUserMethodCall
protected abstract io.smallrye.mutiny.Uni<?> handleUserMethodCall(graphql.schema.DataFetchingEnvironment dfe, Object[] transformedArguments) throws Exception- Throws:
Exception
-
invokeFailure
protected <O> O invokeFailure(graphql.execution.DataFetcherResult.Builder<Object> resultBuilder)
-
invokeBatch
protected CompletionStage<List<T>> invokeBatch(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments)
-
-