org.apache.hc.core5.pool

## Interface ConnPoolControl<T>

- Type Parameters:
    `T` - the route type that represents the opposite endpoint of a pooled connection.
  All Superinterfaces:
    ConnPoolStats<T>
  All Known Subinterfaces:
    ManagedConnPool<T,C>
  All Known Implementing Classes:
    H2AsyncRequester, HttpAsyncRequester, HttpRequester, LaxConnPool, StrictConnPool

      public interface ConnPoolControl<T>
      extends ConnPoolStats<T>

  Interface to control runtime properties of a `ConnPool` such as maximum total number of connections or maximum connections per route allowed.
  Since:
    4.2

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `closeExpired()`
    `void` | `closeIdle(TimeValue idleTime)`
    `int` | `getDefaultMaxPerRoute()`
    `int` | `getMaxPerRoute(T route)`
    `int` | `getMaxTotal()`
    `Set<T>` | `getRoutes()`
    `void` | `setDefaultMaxPerRoute(int max)`
    `void` | `setMaxPerRoute(T route, int max)`
    `void` | `setMaxTotal(int max)`

    - ### Methods inherited from interface org.apache.hc.core5.pool.ConnPoolStats

      `getStats, getTotalStats`

- - ### Method Detail

    - #### setMaxTotal

          void setMaxTotal(int max)

    - #### getMaxTotal

          int getMaxTotal()

    - #### setDefaultMaxPerRoute

          void setDefaultMaxPerRoute(int max)

    - #### getDefaultMaxPerRoute

          int getDefaultMaxPerRoute()

    - #### setMaxPerRoute

          void setMaxPerRoute(T route,
                            int max)

    - #### getMaxPerRoute

          int getMaxPerRoute(T route)

    - #### closeIdle

          void closeIdle(TimeValue idleTime)

    - #### closeExpired

          void closeExpired()

    - #### getRoutes

          Set<T> getRoutes()

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.