public class ApolloSubscriptionProtocolHandler extends SubscriptionProtocolHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
ApolloSubscriptionProtocolHandler.OperationMessage |
| Constructor and Description |
|---|
ApolloSubscriptionProtocolHandler(SubscriptionHandlerInput subscriptionHandlerInput,
ApolloSubscriptionConnectionListener connectionListener,
graphql.servlet.internal.SubscriptionSender subscriptionSender,
graphql.servlet.internal.ApolloSubscriptionKeepAliveRunner keepAliveRunner) |
| Modifier and Type | Method and Description |
|---|---|
void |
onMessage(javax.websocket.server.HandshakeRequest request,
javax.websocket.Session session,
WsSessionSubscriptions subscriptions,
java.lang.String text) |
protected void |
sendCompleteMessage(javax.websocket.Session session,
java.lang.String id) |
protected void |
sendDataMessage(javax.websocket.Session session,
java.lang.String id,
java.lang.Object payload) |
protected void |
sendErrorMessage(javax.websocket.Session session,
java.lang.String id) |
subscribe, unsubscribepublic ApolloSubscriptionProtocolHandler(SubscriptionHandlerInput subscriptionHandlerInput, ApolloSubscriptionConnectionListener connectionListener, graphql.servlet.internal.SubscriptionSender subscriptionSender, graphql.servlet.internal.ApolloSubscriptionKeepAliveRunner keepAliveRunner)
public void onMessage(javax.websocket.server.HandshakeRequest request,
javax.websocket.Session session,
WsSessionSubscriptions subscriptions,
java.lang.String text)
onMessage in class SubscriptionProtocolHandlerprotected void sendDataMessage(javax.websocket.Session session,
java.lang.String id,
java.lang.Object payload)
sendDataMessage in class SubscriptionProtocolHandlerprotected void sendErrorMessage(javax.websocket.Session session,
java.lang.String id)
sendErrorMessage in class SubscriptionProtocolHandlerprotected void sendCompleteMessage(javax.websocket.Session session,
java.lang.String id)
sendCompleteMessage in class SubscriptionProtocolHandler