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

`registerCollectionCallback` overloads

== Synopses

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

Register a collection callback with a monitoring system&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:BloombergLP/bdlm/MetricsAdapter/CallbackHandle.adoc[CallbackHandle]
xref:BloombergLP/bdlm/MetricsAdapter/registerCollectionCallback.adoc[registerCollectionCallback](
    xref:BloombergLP/bdlm/MetricDescriptor.adoc[MetricDescriptor] const& metricDescriptor,
    xref:BloombergLP/bdlm/MetricsAdapter/Callback.adoc[Callback] const& callback) = 0;
----

[.small]#xref:BloombergLP/bdlm/MetricsAdapter/registerCollectionCallback.adoc[_» more&period;&period;&period;_]#

Register the specified `callback` using the specified `metricDescriptor`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:BloombergLP/bdlm/MetricsAdapter/CallbackHandle.adoc[CallbackHandle]
xref:BloombergLP/balm/BdlmMetricsAdapter/registerCollectionCallback-00.adoc[registerCollectionCallback](
    xref:BloombergLP/bdlm/MetricDescriptor.adoc[bdlm::MetricDescriptor] const& metricDescriptor,
    xref:BloombergLP/bdlm/MetricsAdapter/Callback.adoc[Callback] const& callback) override;
----

[.small]#xref:BloombergLP/balm/BdlmMetricsAdapter/registerCollectionCallback-00.adoc[_» more&period;&period;&period;_]#

== Return Value

callback handle to be used with `removeCollectionCallback`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *metricDescriptor*
| descriptor used for the registration
| *callback*
| collection callback to register
|===


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