Class GraphQLWSHandler

    • Constructor Detail

      • GraphQLWSHandler

        public GraphQLWSHandler​(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler delegate)
      • GraphQLWSHandler

        public GraphQLWSHandler​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • connectionInitHandler

        @Deprecated
        public GraphQLWSHandler connectionInitHandler​(io.vertx.core.Handler<ConnectionInitEvent> connectionInitHandler)
        Deprecated.
        Customize the connection init . This handler will be called when the message is received.
        Parameters:
        connectionInitHandler -
        Returns:
        a reference to this, so the API can be used fluently
      • messageHandler

        @Deprecated
        public GraphQLWSHandler messageHandler​(io.vertx.core.Handler<Message> messageHandler)
        Deprecated.
        Customize the message . This handler will be called for each Message received.
        Parameters:
        messageHandler -
        Returns:
        a reference to this, so the API can be used fluently
      • endHandler

        @Deprecated
        public GraphQLWSHandler endHandler​(io.vertx.core.Handler<ServerWebSocket> endHandler)
        Deprecated.
        Customize the end . This handler will be called at the end of each websocket connection.
        Parameters:
        endHandler -
        Returns:
        a reference to this, so the API can be used fluently
      • create

        public static GraphQLWSHandler create​(graphql.GraphQL graphQL)
        Create a new GraphQLWSHandler that will use the provided graphQL object to execute requests.

        The handler will be configured with the default GraphQLWSOptions.

        Parameters:
        graphQL -
        Returns:
      • create

        public static GraphQLWSHandler create​(graphql.GraphQL graphQL,
                                              io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options)
        Create a new GraphQLWSHandler that will use the provided graphQL object to execute requests.

        The handler will be configured with the given options.

        Parameters:
        graphQL -
        options - options for configuring the GraphQLWSOptions
        Returns:
      • newInstance

        public static GraphQLWSHandler newInstance​(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandler arg)