I am implementing TCP Client. I am using CachingClientConnectionFactory to create pool of 10 TCP Connections using TcpNetClientConnectionFactory
. I am aiming to print connection ids of open-connections. I came across cachingClientConnectionFactory.getOpenConnectionIds()
But it does not print anything. On digging in deeper, I found that neither CachingClientConnectionFactory
nor AbstractClientConnectionFactory
provide the implementation for getOpenConnectionIds()
. In fact, it is implemented in AbstractConnectionFactory
. So, it's safe to assume that the method is only applicable to TCP Server?
I am all ears to other suggestion to print connection ids of open connections on client side. For time being, I am leveraging cachingClientConnectionFactory.getActiveCount()
to print the number of open/active connections.