public class PerConnectionApolloHandler extends Object implements org.springframework.web.socket.WebSocketHandler, org.springframework.web.socket.SubProtocolCapable
| Constructor and Description |
|---|
PerConnectionApolloHandler(graphql.GraphQL graphQL,
GraphQLWebSocketExecutor executor,
org.springframework.scheduling.TaskScheduler taskScheduler,
int keepAliveInterval,
int sendTimeLimit,
int sendBufferSizeLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterConnectionClosed(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.CloseStatus closeStatus) |
void |
afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) |
void |
cancelAll() |
protected org.springframework.web.socket.WebSocketSession |
decorateSession(org.springframework.web.socket.WebSocketSession session) |
List<String> |
getSubProtocols() |
void |
handleMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.WebSocketMessage<?> message) |
void |
handleTransportError(org.springframework.web.socket.WebSocketSession session,
Throwable exception) |
boolean |
supportsPartialMessages() |
public PerConnectionApolloHandler(graphql.GraphQL graphQL,
GraphQLWebSocketExecutor executor,
org.springframework.scheduling.TaskScheduler taskScheduler,
int keepAliveInterval,
int sendTimeLimit,
int sendBufferSizeLimit)
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session)
throws Exception
afterConnectionEstablished in interface org.springframework.web.socket.WebSocketHandlerExceptionpublic void handleMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.WebSocketMessage<?> message)
throws Exception
handleMessage in interface org.springframework.web.socket.WebSocketHandlerExceptionpublic void handleTransportError(org.springframework.web.socket.WebSocketSession session,
Throwable exception)
handleTransportError in interface org.springframework.web.socket.WebSocketHandlerpublic void afterConnectionClosed(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.CloseStatus closeStatus)
afterConnectionClosed in interface org.springframework.web.socket.WebSocketHandlerpublic boolean supportsPartialMessages()
supportsPartialMessages in interface org.springframework.web.socket.WebSocketHandlerpublic List<String> getSubProtocols()
getSubProtocols in interface org.springframework.web.socket.SubProtocolCapable@PreDestroy public void cancelAll()
protected org.springframework.web.socket.WebSocketSession decorateSession(org.springframework.web.socket.WebSocketSession session)
Copyright © 2018–2021. All rights reserved.