Interface OkHttpClientConnectionPoolFactory
- All Known Implementing Classes:
DefaultOkHttpClientConnectionPoolFactory
public interface OkHttpClientConnectionPoolFactory
Creates
ConnectionPools for OkHttpClients.- 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.
-