public interface GraphQLWSHandlerBuilder
GraphQLWSHandler
instances.Modifier and Type | Method and Description |
---|---|
GraphQLWSHandlerBuilder |
beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> beforeExecuteHandler)
Set a callback to invoke before executing a GraphQL query.
|
GraphQLWSHandler |
build() |
GraphQLWSHandlerBuilder |
onConnectionInit(Handler<ConnectionInitEvent> connectionInitHandler)
Customize the connection init
Handler . |
GraphQLWSHandlerBuilder |
onMessage(Handler<Message> messageHandler)
Customize the message
Handler . |
GraphQLWSHandlerBuilder |
onSocketEnd(Handler<ServerWebSocket> endHandler)
Customize the end
Handler . |
GraphQLWSHandlerBuilder |
with(GraphQLWSOptions options)
Change the
GraphQLWSOptions to use. |
GraphQLWSHandlerBuilder with(GraphQLWSOptions options)
GraphQLWSOptions
to use.GraphQLWSHandlerBuilder onConnectionInit(Handler<ConnectionInitEvent> connectionInitHandler)
Handler
.
This handler will be called when the MessageType.CONNECTION_INIT
message is received.GraphQLWSHandlerBuilder beforeExecute(Handler<ExecutionInputBuilderWithContext<Message>> beforeExecuteHandler)
beforeExecuteHandler
- the callback to invokeGraphQLWSHandlerBuilder onMessage(Handler<Message> messageHandler)
GraphQLWSHandlerBuilder onSocketEnd(Handler<ServerWebSocket> endHandler)
Handler
.
This handler will be called at the end of each websocket connection.GraphQLWSHandler build()
GraphQLWSHandler
Copyright © 2024 Eclipse. All rights reserved.