public interface ApolloWSHandler extends Handler<RoutingContext>
subscriptions-transport-ws transport.| Modifier and Type | Method and Description | 
|---|---|
ApolloWSHandler | 
connectionHandler(Handler<ServerWebSocket> connectionHandler)
Customize the connection  
Handler. | 
static ApolloWSHandler | 
create(graphql.GraphQL graphQL)
Create a new  
ApolloWSHandler that will use the provided graphQL object to execute requests. | 
static ApolloWSHandler | 
create(graphql.GraphQL graphQL,
      ApolloWSOptions options)
Create a new  
ApolloWSHandler that will use the provided graphQL object to execute requests. | 
ApolloWSHandler | 
dataLoaderRegistry(java.util.function.Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
Customize the  
DataLoaderRegistry. | 
ApolloWSHandler | 
endHandler(Handler<ServerWebSocket> endHandler)
Customize the end  
Handler. | 
ApolloWSHandler | 
locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
Customize the  
Locale passed to the GraphQL execution engine. | 
ApolloWSHandler | 
messageHandler(Handler<ApolloWSMessage> messageHandler)
Customize the message  
Handler. | 
ApolloWSHandler | 
queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
Customize the query context object. 
 | 
static ApolloWSHandler create(graphql.GraphQL graphQL)
ApolloWSHandler that will use the provided graphQL object to execute requests.
 
 The handler will be configured with the default ApolloWSOptions.
static ApolloWSHandler create(graphql.GraphQL graphQL, ApolloWSOptions options)
ApolloWSHandler that will use the provided graphQL object to execute requests.
 
 The handler will be configured with the given options.
options - options for configuring the ApolloWSOptionsApolloWSHandler connectionHandler(Handler<ServerWebSocket> connectionHandler)
Handler.
 This handler will be called at the beginning of each websocket connection.ApolloWSHandler messageHandler(Handler<ApolloWSMessage> messageHandler)
Handler.
 This handler will be called for each ApolloWSMessage received.ApolloWSHandler endHandler(Handler<ServerWebSocket> endHandler)
Handler.
 This handler will be called at the end of each websocket connection.ApolloWSHandler queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
factory method will be invoked for each incoming GraphQL request.ApolloWSHandler dataLoaderRegistry(java.util.function.Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
DataLoaderRegistry.
 The provided factory method will be invoked for each incoming GraphQL request.ApolloWSHandler locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
Locale passed to the GraphQL execution engine.
 The provided factory method will be invoked for each incoming GraphQL request.Copyright © 2020 Eclipse. All rights reserved.