BloombergLP::bdlm::MetricsRegistry::removeMetricsAdapter

Remove adapter if it is the adapter associated with this registry.

Synopsis

Declared in <bdlm_metricsregistry.h>

int
removeMetricsAdapter(MetricsAdapter* adapter);

Description

If the specified adapter is the currently associated adapter, remove all registered metrics from it and disassociate with this registry. Return 0 on success, and a non-zero value otherwise. Note that this operation takes an adapter to disambiguate multiple, potentially concurrent, calls to this method and setMetricsAdapter.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
adaptermetrics adapter to disassociate if currently associated