Class SubscriptionExecutionStrategy

java.lang.Object
graphql.execution.ExecutionStrategy
graphql.execution.SubscriptionExecutionStrategy

@PublicApi public class SubscriptionExecutionStrategy extends ExecutionStrategy
An execution strategy that implements graphql subscriptions by using reactive-streams as the output result of the subscription query.

Afterwards each object delivered on that stream will be mapped via running the original selection set over that object and hence producing an ExecutionResult just like a normal graphql query.

See http://spec.graphql.org/draft/#sec-Subscription

See http://www.reactive-streams.org/

  • Field Details

    • KEEP_SUBSCRIPTION_EVENTS_ORDERED

      public static final String KEEP_SUBSCRIPTION_EVENTS_ORDERED
      If a boolean value is placed into the GraphQLContext with this key then the order of the subscription events can be controlled. By default, subscription events are published as the graphql subselection calls complete, and not in the order they originally arrived from the source publisher. But this can be changed to Boolean.TRUE to keep them in order.
      See Also:
  • Constructor Details

    • SubscriptionExecutionStrategy

      public SubscriptionExecutionStrategy()
    • SubscriptionExecutionStrategy

      public SubscriptionExecutionStrategy(DataFetcherExceptionHandler dataFetcherExceptionHandler)
  • Method Details