Class HttpClientConfig

java.lang.Object
io.constructor.client.HttpClientConfig

public class HttpClientConfig extends Object
  • Constructor Details

    • HttpClientConfig

      public HttpClientConfig()
  • Method Details

    • getReadTimeout

      public int getReadTimeout()
      Returns:
      the read timeout in milliseconds
    • setReadTimeout

      public void setReadTimeout(int readTimeout)
      Parameters:
      readTimeout - the read timeout for new connections in milliseconds
    • getWriteTimeout

      public int getWriteTimeout()
      Returns:
      the write timeout in milliseconds
    • setWriteTimeout

      public void setWriteTimeout(int writeTimeout)
      Parameters:
      writeTimeout - the write timeout for new connections in milliseconds
    • getConnectTimeout

      public int getConnectTimeout()
      Returns:
      the connect timeout in milliseconds
    • setConnectTimeout

      public void setConnectTimeout(int connectTimeout)
      Parameters:
      connectTimeout - the connect timeout for new connections in milliseconds
    • getCallTimeout

      public int getCallTimeout()
      Returns:
      the call timeout in milliseconds
    • setCallTimeout

      public void setCallTimeout(int callTimeout)
      Parameters:
      callTimeout - the call timeout for complete calls in milliseconds
    • getConnectionPoolMaxIdleConnections

      public int getConnectionPoolMaxIdleConnections()
      Returns:
      the maximum number of idle connections in the pool
    • setConnectionPoolMaxIdleConnections

      public void setConnectionPoolMaxIdleConnections(int connectionPoolMaxIdleConnections)
      Parameters:
      connectionPoolMaxIdleConnections - the maximum number of idle connections in the pool
    • getConnectionPoolKeepAliveDuration

      public int getConnectionPoolKeepAliveDuration()
      Returns:
      the keep alive duration in milliseconds
    • setConnectionPoolKeepAliveDuration

      public void setConnectionPoolKeepAliveDuration(int connectionPoolKeepAliveDuration)
      Parameters:
      connectionPoolKeepAliveDuration - the time in milliseconds to keep the connection alive in the pool before closing it
    • getDispatcherMaxRequests

      public int getDispatcherMaxRequests()
      Returns:
      the max requests to execute concurrently
    • setDispatcherMaxRequests

      public void setDispatcherMaxRequests(int dispatcherMaxRequests)
      Parameters:
      dispatcherMaxRequests - the max requests to execute concurrently
    • getDispatcherMaxRequestsPerHost

      public int getDispatcherMaxRequestsPerHost()
      Returns:
      the max requests for each host to execute concurrently
    • setDispatcherMaxRequestsPerHost

      public void setDispatcherMaxRequestsPerHost(int dispatcherMaxRequestsPerHost)
      Parameters:
      dispatcherMaxRequestsPerHost - the max requests for each host to execute concurrently