Class HttpClientConnectionManager

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class HttpClientConnectionManager
    extends CrtResource
    Manages a Pool of Http Connections
    • Method Detail

      • acquireConnection

        public java.util.concurrent.CompletableFuture<HttpClientConnection> acquireConnection()
        Request a HttpClientConnection from the Connection Pool.
        Returns:
        A Future for a HttpClientConnection that will be completed when a connection is acquired.
      • releaseConnection

        public void releaseConnection​(HttpClientConnection conn)
        Releases this HttpClientConnection back into the Connection Pool, and allows another Request to acquire this connection.
        Parameters:
        conn - Connection to release
      • getShutdownCompleteFuture

        public java.util.concurrent.CompletableFuture<java.lang.Void> getShutdownCompleteFuture()
      • getMaxConnections

        public int getMaxConnections()
        Returns:
        maximum number of connections this connection manager will pool
      • getManagerMetrics

        public HttpManagerMetrics getManagerMetrics()
        Returns:
        concurrency metrics for the current manager
      • getWindowSize

        public long getWindowSize()
        Returns:
        size of the per-connection streaming read window for response handling
      • getUri

        public java.net.URI getUri()
        Returns:
        uri the connection manager is making connections to