インターフェースの使用
org.springframework.messaging.tcp.TcpConnectionHandler
パッケージ
説明
シンプルなメッセージングプロトコル(STOMP など)の一般的なサポート。
TcpOperations
を介して TCP 接続を確立し、TcpConnectionHandler
を介してメッセージを処理し、TcpConnection
を介してメッセージを送信するための抽象化と実装クラスが含まれています。Reactor に基づく TCP メッセージングのサポートが含まれています。
org.springframework.messaging.simp.stomp 内の TcpConnectionHandler 使用
修飾子と型インターフェース説明interface
メッセージを送受信するためにTcpConnectionHandler
を実装するStompSession
。interface
STOMP 接続で使用するためのTcpConnectionHandler
で、接続に関する詳細情報を公開します。org.springframework.messaging.tcp 内の TcpConnectionHandler 使用
修飾子と型メソッド説明default ListenableFuture<VoidSE>
TcpOperations.connect
(TcpConnectionHandler<P> connectionHandler) 使用すべきではありません。default ListenableFuture<VoidSE>
TcpOperations.connect
(TcpConnectionHandler<P> connectionHandler, ReconnectStrategy reconnectStrategy) 使用すべきではありません。TcpOperations.connectAsync
(TcpConnectionHandler<P> connectionHandler) 新しい接続を開きます。TcpOperations.connectAsync
(TcpConnectionHandler<P> connectionHandler, ReconnectStrategy reconnectStrategy) 新しい接続を開き、接続が失敗した場合の再接続方法を示します。org.springframework.messaging.tcp.reactor 内の TcpConnectionHandler 使用
修飾子と型メソッド説明ReactorNetty2TcpClient.connectAsync
(TcpConnectionHandler<P> handler) ReactorNetty2TcpClient.connectAsync
(TcpConnectionHandler<P> handler, ReconnectStrategy strategy) ReactorNettyTcpClient.connectAsync
(TcpConnectionHandler<P> handler) ReactorNettyTcpClient.connectAsync
(TcpConnectionHandler<P> handler, ReconnectStrategy strategy) protected reactor.netty5.tcp.TcpClient
ReactorNetty2TcpClient.extendTcpClient
(reactor.netty5.tcp.TcpClient tcpClient, TcpConnectionHandler<P> handler) 特定のTcpConnectionHandler
のTcpClient
を初期化する機会を提供します。これにより、さらに情報を公開するStompTcpConnectionHandler
などのサブインターフェースが実装される場合があります。protected reactor.netty.tcp.TcpClient
ReactorNettyTcpClient.extendTcpClient
(reactor.netty.tcp.TcpClient tcpClient, TcpConnectionHandler<P> handler) 特定のTcpConnectionHandler
のTcpClient
を初期化する機会を提供します。これにより、さらに情報を公開するStompTcpConnectionHandler
などのサブインターフェースが実装される場合があります。
TcpOperations.connectAsync(TcpConnectionHandler)
を推奨