use of com.codahale.metrics.InstrumentedThreadFactory in project graylog2-server by Graylog2.
the class EventLoopGroupFactory method threadFactory.
private ThreadFactory threadFactory(String name, MetricRegistry metricRegistry) {
final String threadFactoryMetricName = MetricRegistry.name(name, "thread-factory");
final ThreadFactory threadFactory = new ThreadFactoryBuilder().setNameFormat("netty-transport-%d").build();
return new InstrumentedThreadFactory(threadFactory, metricRegistry, threadFactoryMetricName);
}
Aggregations