Class GraphQLWSHandlerBuilder
java.lang.Object
io.vertx.mutiny.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder
- All Implemented Interfaces:
MutinyDelegate
A builder for
GraphQLWSHandler instances.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
GraphQLWSHandlerBuilder
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGraphQLWSHandlerBuilder(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder delegate) Create a new instance ofGraphQLWSHandlerBuilderdelegating to the given (non-null) instance ofGraphQLWSHandlerBuilder.GraphQLWSHandlerBuilder(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbeforeExecute(Consumer<ExecutionInputBuilderWithContext<Message>> beforeExecuteHandler) Set a callback to invoke before executing a GraphQL query.build()booleanio.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilderGet the delegate instance.inthashCode()static GraphQLWSHandlerBuildernewInstance(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder delegate) Creates a new instance of theGraphQLWSHandlerBuilder.onConnectionInit(Consumer<ConnectionInitEvent> connectionInitHandler) Customize the connection initHandler.Customize the messageHandler.onSocketEnd(Consumer<ServerWebSocket> endHandler) Customize the endHandler.toString()with(io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options) Change theGraphQLWSOptionsto use.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
GraphQLWSHandlerBuilder
public GraphQLWSHandlerBuilder(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder delegate) Create a new instance ofGraphQLWSHandlerBuilderdelegating to the given (non-null) instance ofGraphQLWSHandlerBuilder. -
GraphQLWSHandlerBuilder
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
with
Change theGraphQLWSOptionsto use.- Returns:
- a reference to this, so the API can be used fluently
-
onConnectionInit
public GraphQLWSHandlerBuilder onConnectionInit(Consumer<ConnectionInitEvent> connectionInitHandler) Customize the connection initHandler. This handler will be called when theMessageType#CONNECTION_INITmessage 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
Customize the messageHandler. This handler will be called for eachMessagereceived.- Returns:
- a reference to this, so the API can be used fluently
-
onSocketEnd
Customize the endHandler. 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
- 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 theGraphQLWSHandlerBuilder. -
hashCode
public int hashCode() -
equals
-
toString
-