Interface OkHttpClientConnectionPoolFactory

All Known Implementing Classes:
DefaultOkHttpClientConnectionPoolFactory

public interface OkHttpClientConnectionPoolFactory
Creates ConnectionPools for OkHttpClients.
Author:
Ryan Baxter
  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.ConnectionPool
    create(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit)
    Creates a new ConnectionPool.
  • Method Details

    • create

      okhttp3.ConnectionPool create(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit)
      Creates a new ConnectionPool.
      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.