Interface OkHttpClientConnectionPoolFactory
-
- All Known Implementing Classes:
DefaultOkHttpClientConnectionPoolFactory
public interface OkHttpClientConnectionPoolFactoryCreatesConnectionPools forOkHttpClients.- Author:
- Ryan Baxter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description okhttp3.ConnectionPoolcreate(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit)Creates a newConnectionPool.
-
-
-
Method Detail
-
create
okhttp3.ConnectionPool create(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit)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.
-
-