Class OutgoingConnectionsRegistry


  • public class OutgoingConnectionsRegistry
    extends Object
    OutgoingConnectionsRegistry can tell if too many connections are open to a specific host at the moment.
    • Constructor Detail

      • OutgoingConnectionsRegistry

        public OutgoingConnectionsRegistry()
    • Method Detail

      • releaseConnection

        public void releaseConnection​(java.net.InetAddress address)
      • getMaxConnectionsToHost

        public int getMaxConnectionsToHost()
        Category:
        GETSET
      • setMaxConnectionsToHost

        public void setMaxConnectionsToHost​(int maxConnectionsToHost)
        Sets the maximum count of simultaneous connections to a single host.
        Parameters:
        maxConnectionsToHost - 0 means no limit