code: public void setKeepAliveConfiguration(KeepAliveConfiguration keepAliveConfiguration)
      {
          if(keepAliveConfiguration != null)
              client.setConnectionPool(new ConnectionPool(keepAliveConfiguration.getMaxIdleConnections(),
                      keepAliveConfiguration.getKeepAliveDurationMs()));
      }
docs: Set the keep alive configuration to use for this client.
  @param keepAliveConfiguration The keep alive configuration