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 allow.keepAliveDuration - Amount of time to keep connections alive.timeUnit - The time unit for the keep-alive duration.ConnectionPool.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.