public interface OkHttpClientConnectionPoolFactory
ConnectionPool
s for OkHttpClient
s.Modifier and Type | Method and Description |
---|---|
okhttp3.ConnectionPool |
create(int maxIdleConnections,
long keepAliveDuration,
TimeUnit timeUnit)
Creates a new
ConnectionPool . |
okhttp3.ConnectionPool create(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit)
ConnectionPool
.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 © 2022 Pivotal Software, Inc.. All rights reserved.