Class GraphQlSseHandler

java.lang.Object
org.springframework.graphql.server.webflux.AbstractGraphQlHttpHandler
org.springframework.graphql.server.webflux.GraphQlSseHandler

public class GraphQlSseHandler extends AbstractGraphQlHttpHandler
GraphQL handler that supports the GraphQL Server-Sent Events Protocol and to be exposed as a WebFlux.fn endpoint via RouterFunctions.
Since:
1.3.0
Author:
Brian Clozel, Rossen Stoyanchev
  • Constructor Details

    • GraphQlSseHandler

      public GraphQlSseHandler(WebGraphQlHandler graphQlHandler)
      Constructor with the handler to delegate to, and no timeout by default, which results in never timing out.
      Parameters:
      graphQlHandler - the handler to delegate to
    • GraphQlSseHandler

      public GraphQlSseHandler(WebGraphQlHandler graphQlHandler, @Nullable Duration timeout)
      Variant constructor with a timeout to use for SSE subscriptions.
      Parameters:
      graphQlHandler - the handler to delegate to
      timeout - the timeout value to use or null to never time out
      Since:
      1.3.3
  • Method Details