Interface OkHttpClientConnectionPoolFactory
- All Known Implementing Classes:
DefaultOkHttpClientConnectionPoolFactory
public interface OkHttpClientConnectionPoolFactory
Creates
ConnectionPool
s for OkHttpClient
s.- Author:
- Ryan Baxter
-
Method Summary
-
Method Details
-
create
Creates a newConnectionPool
.- Parameters:
maxIdleConnections
- Number of max idle connections to allow.keepAliveDuration
- Amount of time to keep connections alive.timeUnit
- The time unit for the keep-alive duration.- Returns:
- A new
ConnectionPool
.
-