code: protected void pureJavaConfigure() {
          ClientConfigurationFactory configurationFactory = new ClientConfigurationFactory(
                  "http", "writeyourownservername.com", 8088, // serverPort
                  "/api/v1", "/api/v1",
                  "username", "pwd",
                  3000, // connectTimeout
                  3000, // readTimeout
                  600000, // pingTimeout
                  false, // ignoreSSLErrors
                  false, // skipStreamingControl
                  false //enableGzipCompression
          );
          ClientConfiguration clientConfiguration = configurationFactory.createClientConfiguration();
          logger.info("Connecting to ATSD: " + clientConfiguration.getMetadataUrl());
          HttpClientManager httpClientManager = new HttpClientManager(clientConfiguration);
  
          GenericObjectPoolConfig objectPoolConfig = new GenericObjectPoolConfig();
          objectPoolConfig.setMaxTotal(5);
          objectPoolConfig.setMaxIdle(5);
  
          httpClientManager.setObjectPoolConfig(objectPoolConfig);
          httpClientManager.setBorrowMaxWaitMillis(1000);
  
          dataService = new DataService(httpClientManager);
          metaDataService = new MetaDataService(httpClientManager);
      }
docs: Client Configuration -- way 2