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>
public class PublisherDataFetcher<K,T> extends AbstractStreamingDataFetcher<K,T>
Handle Stream calls with Publisher- Author:
- Phillip Kruger ([email protected])
-
-
Field Summary
-
Fields inherited from class io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher
argumentHelper, batchLoaderHelper, errorResultHelper, eventEmitter, fieldHelper, operation, operationInvoker, type
-
-
Constructor Summary
Constructors Constructor Description PublisherDataFetcher(Operation operation, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.smallrye.mutiny.Multi<List<T>>
handleUserBatchLoad(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, invokeFailure
-
Methods inherited from class io.smallrye.graphql.execution.datafetcher.AbstractDataFetcher
get, load
-
-
-
-
Method Detail
-
handleUserMethodCall
protected io.smallrye.mutiny.Multi<?> handleUserMethodCall(graphql.schema.DataFetchingEnvironment dfe, Object[] transformedArguments) throws Exception
- Specified by:
handleUserMethodCall
in classAbstractStreamingDataFetcher<K,T>
- Throws:
Exception
-
handleUserBatchLoad
protected io.smallrye.mutiny.Multi<List<T>> handleUserBatchLoad(graphql.schema.DataFetchingEnvironment dfe, Object[] arguments) throws Exception
- Specified by:
handleUserBatchLoad
in classAbstractStreamingDataFetcher<K,T>
- Throws:
Exception
-
-