Class PerConnectionApolloHandler
java.lang.Object
io.leangen.graphql.spqr.spring.web.apollo.PerConnectionApolloHandler
- All Implemented Interfaces:
org.springframework.web.socket.SubProtocolCapable,org.springframework.web.socket.WebSocketHandler
public class PerConnectionApolloHandler
extends Object
implements org.springframework.web.socket.WebSocketHandler, org.springframework.web.socket.SubProtocolCapable
-
Constructor Summary
ConstructorsConstructorDescriptionPerConnectionApolloHandler(graphql.GraphQL graphQL, GraphQLWebSocketExecutor executor, org.springframework.scheduling.TaskScheduler taskScheduler, int keepAliveInterval, int sendTimeLimit, int sendBufferSizeLimit) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterConnectionClosed(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.CloseStatus closeStatus) voidafterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) voidprotected org.springframework.web.socket.WebSocketSessiondecorateSession(org.springframework.web.socket.WebSocketSession session) voidhandleMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.WebSocketMessage<?> message) voidhandleTransportError(org.springframework.web.socket.WebSocketSession session, Throwable exception) boolean
-
Constructor Details
-
PerConnectionApolloHandler
public PerConnectionApolloHandler(graphql.GraphQL graphQL, GraphQLWebSocketExecutor executor, org.springframework.scheduling.TaskScheduler taskScheduler, int keepAliveInterval, int sendTimeLimit, int sendBufferSizeLimit)
-
-
Method Details
-
afterConnectionEstablished
public void afterConnectionEstablished(org.springframework.web.socket.WebSocketSession session) throws Exception - Specified by:
afterConnectionEstablishedin interfaceorg.springframework.web.socket.WebSocketHandler- Throws:
Exception
-
handleMessage
public void handleMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.WebSocketMessage<?> message) throws Exception - Specified by:
handleMessagein interfaceorg.springframework.web.socket.WebSocketHandler- Throws:
Exception
-
handleTransportError
public void handleTransportError(org.springframework.web.socket.WebSocketSession session, Throwable exception) - Specified by:
handleTransportErrorin interfaceorg.springframework.web.socket.WebSocketHandler
-
afterConnectionClosed
public void afterConnectionClosed(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.CloseStatus closeStatus) - Specified by:
afterConnectionClosedin interfaceorg.springframework.web.socket.WebSocketHandler
-
supportsPartialMessages
public boolean supportsPartialMessages()- Specified by:
supportsPartialMessagesin interfaceorg.springframework.web.socket.WebSocketHandler
-
getSubProtocols
- Specified by:
getSubProtocolsin interfaceorg.springframework.web.socket.SubProtocolCapable
-
cancelAll
-
decorateSession
protected org.springframework.web.socket.WebSocketSession decorateSession(org.springframework.web.socket.WebSocketSession session)
-