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

This protocol class provides a method to publish recorded metric values&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Publisher;
----

== Description

This protocol class provides a `publish` method to publish collected sample of recorded metric values&period; The precise meaning of publish is left to derived classes to specify&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/Publisher/2destructor.adoc[`&#126;Publisher`] [.small]#[destructor]# [.small]#[virtual]#
| Destroy this object&period;
| xref:BloombergLP/balm/Publisher/publish.adoc[`publish`]  [.small]#[virtual]#
| Publish the specified `metricValue`&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/balm/StreamPublisher.adoc[`StreamPublisher`] 
| This class provides a `Publisher` that writes metric samples to a stream&period;
|===


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