Top Description Methods
org.springframework.messaging.simp.stomp

public Interface ConnectionHandlingStompSession

extends StompSession, StompTcpConnectionHandler<byte[]>
Known Direct Implementers
org.springframework.messaging.simp.stomp.DefaultStompSession
Imports
java.util.concurrent.CompletableFuture

A StompSession that implements TcpConnectionHandler in order to send and receive messages.

A ConnectionHandlingStompSession can be used with any TCP or WebSocket library that is adapted to the TcpConnectionHandler contract.

Author
Rossen Stoyanchev
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public CompletableFuture<StompSession>
getSession()

Return a future that will complete when the session is ready for use.

public default ListenableFuture<StompSession>
getSessionFuture()

Deprecated since 6.0. as of 6.0, in favor of getSession()
Return a future that will complete when the session is ready for use.
Inherited from org.springframework.messaging.simp.stomp.StompSession:
acknowledgeacknowledgedisconnectdisconnectgetSessionIdisConnectedsendsendsetAutoReceiptsubscribesubscribe
Inherited from org.springframework.messaging.simp.stomp.StompTcpConnectionHandler:
getConnectHeadersgetSessionId

Method Detail

getSessionback to summary
public CompletableFuture<StompSession> getSession()

Return a future that will complete when the session is ready for use.

Since
6.0
getSessionFutureback to summary
public default ListenableFuture<StompSession> getSessionFuture()

Deprecated

since 6.0.

as of 6.0, in favor of getSession()

Return a future that will complete when the session is ready for use.

Annotations
@Deprecated
since:6.0