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)
OkHttpClientConnectionPoolFactory
ConnectionPool
.create
in interface OkHttpClientConnectionPoolFactory
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.ConnectionPool
.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.