public class GraphQLWebsocketServlet
extends javax.websocket.Endpoint
| Constructor and Description |
|---|
GraphQLWebsocketServlet(GraphQLQueryInvoker queryInvoker,
GraphQLInvocationInputFactory invocationInputFactory,
GraphQLObjectMapper graphQLObjectMapper) |
GraphQLWebsocketServlet(GraphQLQueryInvoker queryInvoker,
GraphQLInvocationInputFactory invocationInputFactory,
GraphQLObjectMapper graphQLObjectMapper,
SubscriptionConnectionListener subscriptionConnectionListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginShutDown()
Stops accepting connections and closes all existing connections
|
int |
getSessionCount() |
int |
getSubscriptionCount() |
boolean |
isShutDown() |
void |
modifyHandshake(javax.websocket.server.ServerEndpointConfig sec,
javax.websocket.server.HandshakeRequest request,
javax.websocket.HandshakeResponse response) |
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason) |
void |
onError(javax.websocket.Session session,
java.lang.Throwable thr) |
void |
onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig endpointConfig) |
public GraphQLWebsocketServlet(GraphQLQueryInvoker queryInvoker, GraphQLInvocationInputFactory invocationInputFactory, GraphQLObjectMapper graphQLObjectMapper)
public GraphQLWebsocketServlet(GraphQLQueryInvoker queryInvoker, GraphQLInvocationInputFactory invocationInputFactory, GraphQLObjectMapper graphQLObjectMapper, SubscriptionConnectionListener subscriptionConnectionListener)
public void onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig endpointConfig)
onOpen in class javax.websocket.Endpointpublic void onClose(javax.websocket.Session session,
javax.websocket.CloseReason closeReason)
onClose in class javax.websocket.Endpointpublic void onError(javax.websocket.Session session,
java.lang.Throwable thr)
onError in class javax.websocket.Endpointpublic void modifyHandshake(javax.websocket.server.ServerEndpointConfig sec,
javax.websocket.server.HandshakeRequest request,
javax.websocket.HandshakeResponse response)
public void beginShutDown()
public boolean isShutDown()
public int getSessionCount()
public int getSubscriptionCount()