Class CodahaleMetricsTrackerFactory
- java.lang.Object
-
- com.zaxxer.hikari.metrics.dropwizard.CodahaleMetricsTrackerFactory
-
- All Implemented Interfaces:
MetricsTrackerFactory
public final class CodahaleMetricsTrackerFactory extends Object implements MetricsTrackerFactory
-
-
Constructor Summary
Constructors Constructor Description CodahaleMetricsTrackerFactory(com.codahale.metrics.MetricRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMetricsTrackercreate(String poolName, PoolStats poolStats)Create an instance of an IMetricsTracker.com.codahale.metrics.MetricRegistrygetRegistry()
-
-
-
Method Detail
-
getRegistry
public com.codahale.metrics.MetricRegistry getRegistry()
-
create
public IMetricsTracker create(String poolName, PoolStats poolStats)
Description copied from interface:MetricsTrackerFactoryCreate an instance of an IMetricsTracker.- Specified by:
createin interfaceMetricsTrackerFactory- Parameters:
poolName- the name of the poolpoolStats- a PoolStats instance to use- Returns:
- a IMetricsTracker implementation instance
-
-