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.core.internal.SubscriptionSender subscriptionSender,
graphql.servlet.core.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, unsubscribe
public ApolloSubscriptionProtocolHandler(SubscriptionHandlerInput subscriptionHandlerInput, ApolloSubscriptionConnectionListener connectionListener, graphql.servlet.core.internal.SubscriptionSender subscriptionSender, graphql.servlet.core.internal.ApolloSubscriptionKeepAliveRunner keepAliveRunner)
public void onMessage(javax.websocket.server.HandshakeRequest request, javax.websocket.Session session, WsSessionSubscriptions subscriptions, java.lang.String text)
onMessage
in class SubscriptionProtocolHandler
protected void sendDataMessage(javax.websocket.Session session, java.lang.String id, java.lang.Object payload)
sendDataMessage
in class SubscriptionProtocolHandler
protected void sendErrorMessage(javax.websocket.Session session, java.lang.String id)
sendErrorMessage
in class SubscriptionProtocolHandler
protected void sendCompleteMessage(javax.websocket.Session session, java.lang.String id)
sendCompleteMessage
in class SubscriptionProtocolHandler