BloombergLP::balm::MetricsManager::addSpecificPublisher

addSpecificPublisher overloads

Synopses

Declared in <balm_metricsmanager.h>

Add a publisher used only for the specified category.

int
addSpecificPublisher(
    Category const* category,
    bsl::shared_ptr<Publisher> const& publisher);
» more...

Add the specified publisher for the named category.

int
addSpecificPublisher(
    char const* categoryName,
    bsl::shared_ptr<Publisher> const& publisher);
» more...

Return Value

  • 0 on success, and a non-zero value with no effect if publisher has already been registered for category
  • 0 on success, and a non-zero value with no effect if publisher has already been registered for the named category

Parameters

NameDescription
categorycategory for which to register the publisher
publisherpublisher to register for category
categoryNamenull-terminated category name