[#BloombergLP-balm-BdlmMetricsAdapter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::BdlmMetricsAdapter
:relfileprefix: ../../
:mrdocs:

This class provides a concrete `bdlm&colon;&colon;MetricsAdapter` backed by `balm&colon;&colon;MetricsManager`&period;

== Synopsis

Declared in `&lt;balm&lowbar;bdlmmetricsadapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class BdlmMetricsAdapter
    : public xref:BloombergLP/bdlm/MetricsAdapter.adoc[bdlm::MetricsAdapter]
----

== Description

This class implements a pure abstract interface for clients and suppliers of metrics adapters&period; The implementation registers callbacks with a provided `balm&colon;&colon;MetricsManager` to enable monitoring of statistics collection objects&period;

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bdlm/MetricsAdapter.adoc[bdlm::MetricsAdapter]`
| This protocol class provides a pure abstract interface and contract for clients and suppliers of metrics adapters&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlm/MetricsAdapter/Callback.adoc[`Callback`] 
| Callback functor invoked to collect metric values&period;
| xref:BloombergLP/bdlm/MetricsAdapter/CallbackHandle.adoc[`CallbackHandle`] 
| Opaque handle identifying a registered collection callback&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/BdlmMetricsAdapter/2constructor.adoc[`BdlmMetricsAdapter`]         [.small]#[constructor]#
| Create a `BdlmMetricsAdapter` with the specified manager, namespace, and object&hyphen;identifier prefix&period;
| xref:BloombergLP/balm/BdlmMetricsAdapter/2destructor.adoc[`&#126;BdlmMetricsAdapter`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this `BdlmMetricsAdapter` object&period;
| xref:BloombergLP/balm/BdlmMetricsAdapter/allocator.adoc[`allocator`] 
| Return the allocator used by this object to supply memory&period;
| xref:BloombergLP/balm/BdlmMetricsAdapter/defaultMetricNamespace.adoc[`defaultMetricNamespace`] 
| Return the namespace attribute value to be used as the default value for `MetricDescriptor` instances&period;
| xref:BloombergLP/balm/BdlmMetricsAdapter/defaultObjectIdentifierPrefix.adoc[`defaultObjectIdentifierPrefix`] 
| Return a string to be used as the default prefix for a `MetricDescriptor` object identifier attribute value&period;
| xref:BloombergLP/balm/BdlmMetricsAdapter/registerCollectionCallback-02.adoc[`registerCollectionCallback`] 
| `registerCollectionCallback` overloads
| xref:BloombergLP/balm/BdlmMetricsAdapter/removeCollectionCallback.adoc[`removeCollectionCallback`]  [.small]#[virtual]#
| Remove the collection callback associated with the specified `handle`&period;
| xref:BloombergLP/balm/BdlmMetricsAdapter/2conversion.adoc[`operator BloombergLP::bslmf::NestedTraitDeclaration&lt;BdlmMetricsAdapter, UsesBslmaAllocator&gt;`] 
| Declare that this type uses a `bslma` allocator&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
