-
- All Implemented Interfaces:
public final class FlowSubscriptionExecutionStrategy extends ExecutionStrategy
SubscriptionExecutionStrategy replacement that and allows schema subscription functions to return either a Flow or a Publisher.
Note this implementation is mostly a java->kotlin copy of SubscriptionExecutionStrategy, with updated createSourceEventStream that supports Flow and Publisher. Any returned Flows will be automatically converted to corresponding Publisher.
-
-
Field Summary
Fields Modifier and Type Field Description private final FieldCollector
fieldCollector
private final ExecutionStepInfoFactory
executionStepInfoFactory
private final DataFetcherExceptionHandler
dataFetcherExceptionHandler
-
Constructor Summary
Constructors Constructor Description FlowSubscriptionExecutionStrategy()
FlowSubscriptionExecutionStrategy(DataFetcherExceptionHandler dfe)
-
Method Summary
Modifier and Type Method Description CompletableFuture<ExecutionResult>
execute(ExecutionContext executionContext, ExecutionStrategyParameters parameters)
-
Methods inherited from class com.expediagroup.graphql.generator.execution.FlowSubscriptionExecutionStrategy
assertNonNullFieldPrecondition, assertNonNullFieldPrecondition, completeField, completeValue, completeValueForEnum, completeValueForList, completeValueForList, completeValueForNull, completeValueForObject, completeValueForScalar, createExecutionStepInfo, fetchField, getFieldDef, getFieldDef, getNormalizedField, handleFetchingException, handleNonNullException, resolveField, resolveFieldWithInfo, resolveType, toIterable, toIterable, unboxPossibleDataFetcherResult
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
execute
CompletableFuture<ExecutionResult> execute(ExecutionContext executionContext, ExecutionStrategyParameters parameters)
-
-
-
-