code: private MultiThreadedServiceFactory<AuthDataStore> createDataStoreServiceFactory(String cluster, MetricRegistry metricRegistry) {
          HttpClientConfiguration clientConfig = new HttpClientConfiguration();
          clientConfig.setKeepAlive(Duration.seconds(1));
          clientConfig.setConnectionTimeout(Duration.seconds(10));
          clientConfig.setTimeout(Duration.minutes(5));
  
          return DataStoreClientFactory.forClusterAndHttpConfiguration(cluster, clientConfig, metricRegistry);
      }
docs: Creates a ServiceFactory for a cluster with reasonable configurations.