corePoolSize, maxPoolSize, keepAliveTime, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<Runnable>(), threadFactory(metricRegistry, nameFormat)), metricRegistry);
}
private ThreadFactory threadFactory(final MetricRegistry metricRegistry, final String nameFormat) {
return new InstrumentedThreadFactory(
new ThreadFactoryBuilder().setNameFormat(nameFormat).build(),
metricRegistry);
}