Class PublisherDataFetcher<K,T>
java.lang.Object
io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher<K,T>
io.smallrye.graphql.execution.datafetcher.AbstractStreamingDataFetcher<K,T>
io.smallrye.graphql.execution.datafetcher.PublisherDataFetcher<K,T>
- Type Parameters:
K-T-
- All Implemented Interfaces:
graphql.schema.DataFetcher<T>,PlugableBatchableDataFetcher<K,,T> PlugableDataFetcher<T>,org.dataloader.BatchLoaderWithContext<K,T>
Handle Stream calls with Publisher
- 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 -
Method Summary
Modifier and TypeMethodDescriptionhandleUserBatchLoad(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments) protected io.smallrye.mutiny.Multi<?> handleUserMethodCall(graphql.schema.DataFetchingEnvironment dfe, Object[] transformedArguments) Methods inherited from class io.smallrye.graphql.execution.datafetcher.AbstractStreamingDataFetcher
invokeAndTransform, invokeBatch, invokeFailureMethods inherited from class io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher
get, load
-
Constructor Details
-
PublisherDataFetcher
-
-
Method Details
-
handleUserMethodCall
protected io.smallrye.mutiny.Multi<?> handleUserMethodCall(graphql.schema.DataFetchingEnvironment dfe, Object[] transformedArguments) throws Exception - Specified by:
handleUserMethodCallin classAbstractStreamingDataFetcher<K,T> - Throws:
Exception
-
handleUserBatchLoad
protected io.smallrye.mutiny.Multi<List<T>> handleUserBatchLoad(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments) throws Exception - Specified by:
handleUserBatchLoadin classAbstractStreamingDataFetcher<K,T> - Throws:
Exception
-