Class GraphQLWSHandlerBuilder

java.lang.Object
io.vertx.mutiny.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder
All Implemented Interfaces:
MutinyDelegate

public class GraphQLWSHandlerBuilder extends Object implements MutinyDelegate
A builder for GraphQLWSHandler instances.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • GraphQLWSHandlerBuilder
  • Field Details

  • Constructor Details

    • GraphQLWSHandlerBuilder

      public GraphQLWSHandlerBuilder(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder delegate)
      Create a new instance of GraphQLWSHandlerBuilder delegating to the given (non-null) instance of GraphQLWSHandlerBuilder.
    • GraphQLWSHandlerBuilder

      public GraphQLWSHandlerBuilder(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • with

      public GraphQLWSHandlerBuilder with(io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options)
      Change the GraphQLWSOptions to use.
      Returns:
      a reference to this, so the API can be used fluently
    • onConnectionInit

      public GraphQLWSHandlerBuilder onConnectionInit(Consumer<ConnectionInitEvent> connectionInitHandler)
      Customize the connection init Handler. This handler will be called when the MessageType#CONNECTION_INIT message is received.
      Returns:
      a reference to this, so the API can be used fluently
    • beforeExecute

      public GraphQLWSHandlerBuilder beforeExecute(Consumer<ExecutionInputBuilderWithContext<Message>> beforeExecuteHandler)
      Set a callback to invoke before executing a GraphQL query.
      Parameters:
      beforeExecuteHandler - the callback to invoke
      Returns:
      a reference to this, so the API can be used fluently
    • onMessage

      public GraphQLWSHandlerBuilder onMessage(Consumer<Message> messageHandler)
      Customize the message Handler. This handler will be called for each Message received.
      Returns:
      a reference to this, so the API can be used fluently
    • onSocketEnd

      public GraphQLWSHandlerBuilder onSocketEnd(Consumer<ServerWebSocket> endHandler)
      Customize the end Handler. This handler will be called at the end of each websocket connection.
      Returns:
      a reference to this, so the API can be used fluently
    • build

      public GraphQLWSHandler build()
      Returns:
      a new instance of GraphQLWSHandler
    • newInstance

      public static GraphQLWSHandlerBuilder newInstance(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder delegate)
      Creates a new instance of the GraphQLWSHandlerBuilder.
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object