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