Package 

Class FlowSubscriptionExecutionStrategy


  • 
    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.

    • 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
    • Constructor Detail

      • FlowSubscriptionExecutionStrategy

        FlowSubscriptionExecutionStrategy()
      • FlowSubscriptionExecutionStrategy

        FlowSubscriptionExecutionStrategy(DataFetcherExceptionHandler dfe)
    • Method Detail

      • execute

         CompletableFuture<ExecutionResult> execute(ExecutionContext executionContext, ExecutionStrategyParameters parameters)