this.queryTimeout = new TimeValue(
config.getIntegerProperty(HttpConfig.BATCH_QUERY_TIMEOUT),
TimeUnit.SECONDS
);
this.maxMetricsPerRequest = config.getIntegerProperty(HttpConfig.MAX_METRICS_PER_BATCH_QUERY);
this.serializer = new BatchedMetricsJSONOutputSerializer();
this.gson = new GsonBuilder().setPrettyPrinting().serializeNulls().create();
this.parser = new JsonParser();
this.executor = new ThreadPoolBuilder().withCorePoolSize(maxThreadsToUse).withMaxPoolSize(maxThreadsToUse)
.withName("HTTP-BatchMetricsFetch").withBoundedQueue(maxQueueSize).build();
}