Spring integration Spring集成—TCP服务器是否可以断开选择性客户端的连接

Spring integration Spring集成—TCP服务器是否可以断开选择性客户端的连接,spring-integration,tcpclient,tcp-ip,Spring Integration,Tcpclient,Tcp Ip,我正在我的应用程序中实现Spring集成(4.x版本)TCP服务器。多个客户端将连接到我的TCP服务器端口。我的应用程序将开始接收多个请求,有一种情况下,我的TCP服务器应断开其一个TCP客户端的连接,以保持与其他客户端的连接处于活动状态。 我能够从服务器连接工厂获取OpenConnectionID,但无法断开所选客户端的连接 如何断开其中一个TCP客户端到TCP服务器端口的连接。连接工厂中有一种方法,允许您使用其ID关闭连接 /** * Close a connection with the

我正在我的应用程序中实现Spring集成(4.x版本)TCP服务器。多个客户端将连接到我的TCP服务器端口。我的应用程序将开始接收多个请求,有一种情况下,我的TCP服务器应断开其一个TCP客户端的连接,以保持与其他客户端的连接处于活动状态。 我能够从服务器连接工厂获取OpenConnectionID,但无法断开所选客户端的连接


如何断开其中一个TCP客户端到TCP服务器端口的连接。

连接工厂中有一种方法,允许您使用其ID关闭连接

/**
 * Close a connection with the specified connection id.
 * @param connectionId the connection id.
 * @return true if the connection was closed.
 */
public boolean closeConnection(String connectionId) {