Uses of Interface
org.springframework.messaging.simp.stomp.StompSession
Package
Description
Generic support for simple messaging protocols (like STOMP).
WebSocket integration for Spring's messaging module.
-
Uses of StompSession in org.springframework.messaging.simp.stomp
Modifier and TypeInterfaceDescriptioninterface
AStompSession
that implementsTcpConnectionHandler
in order to send and receive messages.Modifier and TypeMethodDescriptionReactorNettyTcpStompClient.connect
(StompHeaders connectHeaders, StompSessionHandler handler) Deprecated.ReactorNettyTcpStompClient.connect
(StompSessionHandler handler) Deprecated.as of 6.0, in favor ofReactorNettyTcpStompClient.connectAsync(StompSessionHandler)
ReactorNettyTcpStompClient.connectAsync
(StompHeaders connectHeaders, StompSessionHandler handler) An overloaded version ofReactorNettyTcpStompClient.connectAsync(StompSessionHandler)
that accepts headers to use for the STOMP CONNECT frame.ReactorNettyTcpStompClient.connectAsync
(StompSessionHandler handler) Connect and notify the givenStompSessionHandler
when connected on the STOMP level.ConnectionHandlingStompSession.getSession()
Return a future that will complete when the session is ready for use.DefaultStompSession.getSession()
default ListenableFuture<StompSession>
ConnectionHandlingStompSession.getSessionFuture()
Deprecated.as of 6.0, in favor ofConnectionHandlingStompSession.getSession()
Modifier and TypeMethodDescriptionvoid
StompSessionHandler.afterConnected
(StompSession session, StompHeaders connectedHeaders) Invoked when the session is ready to use, i.e.void
StompSessionHandlerAdapter.afterConnected
(StompSession session, StompHeaders connectedHeaders) This implementation is empty.void
StompSessionHandler.handleException
(StompSession session, StompCommand command, StompHeaders headers, byte[] payload, Throwable exception) Handle any exception arising while processing a STOMP frame such as a failure to convert the payload or an unhandled exception in the applicationStompFrameHandler
.void
StompSessionHandlerAdapter.handleException
(StompSession session, StompCommand command, StompHeaders headers, byte[] payload, Throwable exception) This implementation is empty.void
StompSessionHandler.handleTransportError
(StompSession session, Throwable exception) Handle a low level transport error which could be an I/O error or a failure to encode or decode a STOMP message.void
StompSessionHandlerAdapter.handleTransportError
(StompSession session, Throwable exception) This implementation is empty. -
Uses of StompSession in org.springframework.web.socket.messaging
Modifier and TypeMethodDescriptionWebSocketStompClient.connect
(String url, StompSessionHandler handler, Object... uriVars) Deprecated.as of 6.0, in favor ofWebSocketStompClient.connectAsync(String, StompSessionHandler, Object...)
WebSocketStompClient.connect
(String url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler handler, Object... uriVariables) Deprecated.WebSocketStompClient.connect
(String url, WebSocketHttpHeaders handshakeHeaders, StompSessionHandler handler, Object... uriVariables) Deprecated.WebSocketStompClient.connect
(URI url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler sessionHandler) Deprecated.WebSocketStompClient.connectAsync
(String url, StompSessionHandler handler, Object... uriVars) Connect to the given WebSocket URL and notify the givenStompSessionHandler
when connected on the STOMP level after the CONNECTED frame is received.WebSocketStompClient.connectAsync
(String url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler handler, Object... uriVariables) An overloaded version ofWebSocketStompClient.connect(String, StompSessionHandler, Object...)
that also acceptsWebSocketHttpHeaders
to use for the WebSocket handshake andStompHeaders
for the STOMP CONNECT frame.WebSocketStompClient.connectAsync
(String url, WebSocketHttpHeaders handshakeHeaders, StompSessionHandler handler, Object... uriVariables) An overloaded version ofWebSocketStompClient.connect(String, StompSessionHandler, Object...)
that also acceptsWebSocketHttpHeaders
to use for the WebSocket handshake.WebSocketStompClient.connectAsync
(URI url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler sessionHandler) An overloaded version ofWebSocketStompClient.connect(String, WebSocketHttpHeaders, StompSessionHandler, Object...)
that accepts a fully preparedURI
.
ReactorNettyTcpStompClient.connectAsync(StompHeaders, StompSessionHandler)