okhttp / okhttp3 / ConnectionPool / <init>

<init>

ConnectionPool() ConnectionPool(maxIdleConnections: Int, keepAliveDuration: Long, timeUnit: TimeUnit)

Create a new connection pool with tuning parameters appropriate for a single-user application. The tuning parameters in this pool are subject to change in future OkHttp releases. Currently this pool holds up to 5 idle connections which will be evicted after 5 minutes of inactivity.

Constructor
Create a new connection pool with tuning parameters appropriate for a single-user application. The tuning parameters in this pool are subject to change in future OkHttp releases. Currently this pool holds up to 5 idle connections which will be evicted after 5 minutes of inactivity.