接口的使用
org.springframework.messaging.tcp.TcpConnectionHandler
使用TcpConnectionHandler的程序包 程序包 说明 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中TcpConnectionHandler的使用
org.springframework.messaging.simp.stomp中TcpConnectionHandler的子接口 修饰符和类型 接口 说明 interfaceConnectionHandlingStompSessionAStompSessionthat implementsTcpConnectionHandlerin order to send and receive messages.实现TcpConnectionHandler的org.springframework.messaging.simp.stomp中的类 修饰符和类型 类 说明 classDefaultStompSessionDefault implementation ofConnectionHandlingStompSession.org.springframework.messaging.tcp中TcpConnectionHandler的使用
参数类型为TcpConnectionHandler的org.springframework.messaging.tcp中的方法 修饰符和类型 方法 说明 ListenableFuture<Void>TcpOperations. connect(TcpConnectionHandler<P> connectionHandler)Open a new connection.ListenableFuture<Void>TcpOperations. connect(TcpConnectionHandler<P> connectionHandler, ReconnectStrategy reconnectStrategy)Open a new connection and a strategy for reconnecting if the connection fails.org.springframework.messaging.tcp.reactor中TcpConnectionHandler的使用
参数类型为TcpConnectionHandler的org.springframework.messaging.tcp.reactor中的方法 修饰符和类型 方法 说明 ListenableFuture<Void>ReactorNettyTcpClient. connect(TcpConnectionHandler<P> handler)ListenableFuture<Void>ReactorNettyTcpClient. connect(TcpConnectionHandler<P> handler, ReconnectStrategy strategy)