public class GraphQLWebsocketServlet
extends javax.websocket.Endpoint
Constructor and Description |
---|
GraphQLWebsocketServlet(graphql.kickstart.execution.GraphQLInvoker graphQLInvoker,
graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory,
graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper) |
GraphQLWebsocketServlet(graphql.kickstart.execution.GraphQLInvoker graphQLInvoker,
graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory,
graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper,
java.util.Collection<graphql.kickstart.execution.subscriptions.SubscriptionConnectionListener> connectionListeners) |
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(graphql.kickstart.execution.GraphQLInvoker graphQLInvoker, graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory, graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper)
public GraphQLWebsocketServlet(graphql.kickstart.execution.GraphQLInvoker graphQLInvoker, graphql.kickstart.execution.subscriptions.GraphQLSubscriptionInvocationInputFactory invocationInputFactory, graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper, java.util.Collection<graphql.kickstart.execution.subscriptions.SubscriptionConnectionListener> connectionListeners)
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig endpointConfig)
onOpen
in class javax.websocket.Endpoint
public void onClose(javax.websocket.Session session, javax.websocket.CloseReason closeReason)
onClose
in class javax.websocket.Endpoint
public void onError(javax.websocket.Session session, java.lang.Throwable thr)
onError
in class javax.websocket.Endpoint
public 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()