public class WildFlyMetricRegistry extends Object implements Closeable, MetricRegistry
| Constructor and Description |
|---|
WildFlyMetricRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
readLock()
Acquires a non-exclusive read lock that will cause calls from other threads
to
MetricRegistry.registerMetric(Metric, MetricMetadata) or MetricRegistry.unregister(MetricID)
to block. |
void |
registerMetric(Metric metric,
MetricMetadata metadata)
Registers the given metric.
|
void |
unlock()
Releases the non-exclusive lock obtained by a call to
MetricRegistry.readLock(). |
void |
unregister(MetricID metricID)
Unregisters the given metric, if it is registered.
|
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void registerMetric(Metric metric, MetricMetadata metadata)
MetricRegistryholds the registry read lock.registerMetric in interface MetricRegistrymetric - the metric. Cannot be nullmetadata - metadata for the metric. Cannot be nullpublic void unregister(MetricID metricID)
MetricRegistryholds the registry read lock.unregister in interface MetricRegistrymetricID - the id for the metric. Cannot be nullpublic void readLock()
MetricRegistryMetricRegistry.registerMetric(Metric, MetricMetadata) or MetricRegistry.unregister(MetricID)
to block. Must be followed by a call to MetricRegistry.unlock().readLock in interface MetricRegistrypublic void unlock()
MetricRegistryMetricRegistry.readLock().unlock in interface MetricRegistryCopyright © 2022 JBoss by Red Hat. All rights reserved.