public class ApolloWSHandler extends Object implements Handler<RoutingContext>
subscriptions-transport-ws
transport.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<ApolloWSHandler> |
__TYPE_ARG |
Constructor and Description |
---|
ApolloWSHandler(ApolloWSHandler delegate) |
ApolloWSHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
ApolloWSHandler |
connectionHandler(Handler<ServerWebSocket> connectionHandler)
Customize the connection .
|
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 .
|
ApolloWSHandler |
endHandler(Handler<ServerWebSocket> endHandler)
Customize the end .
|
boolean |
equals(Object o) |
ApolloWSHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
ApolloWSHandler |
locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
Customize the passed to the GraphQL execution engine.
|
ApolloWSHandler |
messageHandler(Handler<ApolloWSMessage> messageHandler)
Customize the message .
|
static ApolloWSHandler |
newInstance(ApolloWSHandler arg) |
ApolloWSHandler |
queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
Customize the query context object.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<ApolloWSHandler> __TYPE_ARG
public ApolloWSHandler(ApolloWSHandler delegate)
public ApolloWSHandler(Object delegate)
public ApolloWSHandler getDelegate()
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
event
- the event to handlepublic ApolloWSHandler connectionHandler(Handler<ServerWebSocket> connectionHandler)
connectionHandler
- public ApolloWSHandler messageHandler(Handler<ApolloWSMessage> messageHandler)
ApolloWSMessage
received.messageHandler
- public ApolloWSHandler endHandler(Handler<ServerWebSocket> endHandler)
endHandler
- public ApolloWSHandler queryContext(java.util.function.Function<ApolloWSMessage,Object> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- public 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
.
graphQL
- public 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
.
graphQL
- options
- options for configuring the ApolloWSOptions
public ApolloWSHandler dataLoaderRegistry(java.util.function.Function<ApolloWSMessage,org.dataloader.DataLoaderRegistry> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- public ApolloWSHandler locale(java.util.function.Function<ApolloWSMessage,Locale> factory)
factory
method will be invoked for each incoming GraphQL request.factory
- public static ApolloWSHandler newInstance(ApolloWSHandler arg)
Copyright © 2023 Eclipse. All rights reserved.