Class ProxyConnectionPool

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ProxyConnectionPool
    extends java.lang.Object
    implements java.io.Closeable
    A pool of connections to a target host. This pool can also be used to open connections in exclusive mode, in which case they will not be added to the connection pool. In this case the caller is responsible for closing any connections.
    Author:
    Stuart Douglas
    • Constructor Detail

      • ProxyConnectionPool

        public ProxyConnectionPool​(ConnectionPoolManager connectionPoolManager,
                                   java.net.InetSocketAddress bindAddress,
                                   java.net.URI uri,
                                   UndertowClient client,
                                   org.xnio.OptionMap options)
      • ProxyConnectionPool

        public ProxyConnectionPool​(ConnectionPoolManager connectionPoolManager,
                                   java.net.URI uri,
                                   org.xnio.ssl.XnioSsl ssl,
                                   UndertowClient client,
                                   org.xnio.OptionMap options)
      • ProxyConnectionPool

        public ProxyConnectionPool​(ConnectionPoolManager connectionPoolManager,
                                   java.net.InetSocketAddress bindAddress,
                                   java.net.URI uri,
                                   org.xnio.ssl.XnioSsl ssl,
                                   UndertowClient client,
                                   org.xnio.OptionMap options)
    • Method Detail

      • getUri

        public java.net.URI getUri()
      • getBindAddress

        public java.net.InetSocketAddress getBindAddress()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • getOpenConnections

        public int getOpenConnections()
        Returns:
        The total number of open connections