Class GraphQLWSHandlerBuilder
java.lang.Object
io.vertx.rxjava3.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
A builder for
GraphQLWSHandler instances.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> beforeExecuteHandler) Set a callback to invoke before executing a GraphQL query.build()booleaninthashCode()static GraphQLWSHandlerBuilderonConnectionInit(Handler<ConnectionInitEvent> connectionInitHandler) Customize the connection init .Customize the message .onSocketEnd(Handler<ServerWebSocket> endHandler) Customize the end .toString()with(GraphQLWSOptions options) Change theGraphQLWSOptionsto use.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
GraphQLWSHandlerBuilder
-
GraphQLWSHandlerBuilder
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
with
Change theGraphQLWSOptionsto use.- Parameters:
options-- Returns:
- a reference to this, so the API can be used fluently
-
onConnectionInit
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
-
beforeExecute
public GraphQLWSHandlerBuilder beforeExecute(Handler<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
Customize the message . This handler will be called for eachMessagereceived.- Parameters:
messageHandler-- Returns:
- a reference to this, so the API can be used fluently
-
onSocketEnd
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
-
build
- Returns:
- a new instance of
GraphQLWSHandler
-
newInstance
-