Add a publisher used for every category published by this manager.
Synopsis
Declared in <balm_metricsmanager.h>
int
addGeneralPublisher(bsl::shared_ptr<Publisher> const& publisher);
Description
Add the specified publisher to the set of publishers that will be used to propagate records for every category published by this metrics manager. Return 0 on success, and a non‐zero value with no effect if publisher has already been registered. After this method returns, any category published by this metrics manager will be published to publisher. Note that this method will have no effect and return a non‐zero value if publisher was previously registered for one or more specific categories (using the alternative addSpecificPublisher method).
Return Value
0 on success, and a non‐zero value with no effect if publisher has already been registered
Parameters
Name |
Description |
publisher |
publisher to register for every category |
Created with MrDocs