Class GraphQLWSHandlerBuilder
- java.lang.Object
-
- io.vertx.rxjava.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder
-
public class GraphQLWSHandlerBuilder extends Object
A builder forGraphQLWSHandler
instances. NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<GraphQLWSHandlerBuilder>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description GraphQLWSHandlerBuilder(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder delegate)
GraphQLWSHandlerBuilder(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLWSHandlerBuilder
beforeExecute(io.vertx.core.Handler<ExecutionInputBuilderWithContext<Message>> beforeExecuteHandler)
Set a callback to invoke before executing a GraphQL query.GraphQLWSHandler
build()
boolean
equals(Object o)
io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder
getDelegate()
int
hashCode()
static GraphQLWSHandlerBuilder
newInstance(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder arg)
GraphQLWSHandlerBuilder
onConnectionInit(io.vertx.core.Handler<ConnectionInitEvent> connectionInitHandler)
Customize the connection init .GraphQLWSHandlerBuilder
onMessage(io.vertx.core.Handler<Message> messageHandler)
Customize the message .GraphQLWSHandlerBuilder
onSocketEnd(io.vertx.core.Handler<ServerWebSocket> endHandler)
Customize the end .String
toString()
GraphQLWSHandlerBuilder
with(io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options)
Change theGraphQLWSOptions
to use.
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<GraphQLWSHandlerBuilder> __TYPE_ARG
-
-
Constructor Detail
-
GraphQLWSHandlerBuilder
public GraphQLWSHandlerBuilder(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder delegate)
-
GraphQLWSHandlerBuilder
public GraphQLWSHandlerBuilder(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder getDelegate()
-
with
public GraphQLWSHandlerBuilder with(io.vertx.ext.web.handler.graphql.ws.GraphQLWSOptions options)
Change theGraphQLWSOptions
to use.- Parameters:
options
-- Returns:
- a reference to this, so the API can be used fluently
-
onConnectionInit
public GraphQLWSHandlerBuilder onConnectionInit(io.vertx.core.Handler<ConnectionInitEvent> connectionInitHandler)
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(io.vertx.core.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
public GraphQLWSHandlerBuilder onMessage(io.vertx.core.Handler<Message> messageHandler)
Customize the message . This handler will be called for eachMessage
received.- Parameters:
messageHandler
-- Returns:
- a reference to this, so the API can be used fluently
-
onSocketEnd
public GraphQLWSHandlerBuilder onSocketEnd(io.vertx.core.Handler<ServerWebSocket> endHandler)
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
public GraphQLWSHandler build()
- Returns:
- a new instance of
GraphQLWSHandler
-
newInstance
public static GraphQLWSHandlerBuilder newInstance(io.vertx.ext.web.handler.graphql.ws.GraphQLWSHandlerBuilder arg)
-
-