接口的使用
org.springframework.messaging.tcp.TcpConnection
使用TcpConnection的程序包 程序包 说明 org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.messaging.tcp Contains abstractions and implementation classes for establishing TCP connections viaTcpOperations
, handling messages viaTcpConnectionHandler
, as well as sending messages viaTcpConnection
.org.springframework.messaging.tcp.reactor Contains support for TCP messaging based on Reactor.org.springframework.messaging.simp.stomp中TcpConnection的使用
参数类型为TcpConnection的org.springframework.messaging.simp.stomp中的方法 修饰符和类型 方法 说明 void
DefaultStompSession. afterConnected(TcpConnection<byte[]> connection)
org.springframework.messaging.tcp中TcpConnection的使用
参数类型为TcpConnection的org.springframework.messaging.tcp中的方法 修饰符和类型 方法 说明 void
TcpConnectionHandler. afterConnected(TcpConnection<P> connection)
Invoked after a connection is successfully established.org.springframework.messaging.tcp.reactor中TcpConnection的使用
实现TcpConnection的org.springframework.messaging.tcp.reactor中的类 修饰符和类型 类 说明 class
ReactorNettyTcpConnection<P>
Reactor Netty based implementation ofTcpConnection
.