public RESTClientFactory(RESTClientFactoryConfig config) { this.restClientFactoryConfig = config; this.config = new RESTClientConfig(restClientFactoryConfig.getClientConfig()); this.stats = new StoreStats(); this.rawStoreList = new ArrayList<R2Store>(); // Create the R2 (Netty) Factory object // TODO: Add monitoring for R2 factory this._clientFactory = new HttpClientFactory(); Map<String, String> properties = new HashMap<String, String>(); properties.put( HttpClientFactory.POOL_SIZE_KEY, Integer.toString(this.config.getMaxR2ConnectionPoolSize())); transportClient = _clientFactory.getClient(properties); this.RESTClientFactoryStats = new StoreClientFactoryStats(); keySerializerMap = new HashMap<String, SerializerDefinition>(); valueSerializerMap = new HashMap<String, SerializerDefinition>(); }