Package 

Class FlowSubscriptionExecutionStrategy

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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)