public final class MetricRegistryConstraints extends Object
MetricRegistry, this class extracts it from the Styx Metric Registry if possible.| Modifier and Type | Method and Description |
|---|---|
static com.codahale.metrics.MetricRegistry |
codaHaleMetricRegistry(Environment environment)
If the
MetricRegistry is a CodaHaleMetricRegistry,
extracts and returns the MetricRegistry, otherwise throws an exception. |
public static com.codahale.metrics.MetricRegistry codaHaleMetricRegistry(Environment environment) throws IllegalStateException
MetricRegistry is a CodaHaleMetricRegistry,
extracts and returns the MetricRegistry, otherwise throws an exception.environment - environmentIllegalStateException - if the metrics registry is not codahale-basedCopyright © 2013–2020 Hotels.com. All rights reserved.