public class DefaultOkHttpClientConnectionPoolFactory extends Object implements OkHttpClientConnectionPoolFactory
OkHttpClientConnectionPoolFactory.| Constructor and Description |
|---|
DefaultOkHttpClientConnectionPoolFactory() |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.ConnectionPool |
create(int maxIdleConnections,
long keepAliveDuration,
TimeUnit timeUnit)
Creates a new
ConnectionPool. |
public DefaultOkHttpClientConnectionPoolFactory()
public okhttp3.ConnectionPool create(int maxIdleConnections,
long keepAliveDuration,
TimeUnit timeUnit)
OkHttpClientConnectionPoolFactoryConnectionPool.create in interface OkHttpClientConnectionPoolFactorymaxIdleConnections - number of max idle connections to allowkeepAliveDuration - amount of time to keep connections alivetimeUnit - the time unit for the keep alive durationConnectionPoolCopyright © 2018 Pivotal Software, Inc.. All rights reserved.