Configure this registry to use the specified adapter.

Synopsis

Declared in <bdlm_metricsregistry.h>

int
setMetricsAdapter(MetricsAdapter* adapter);

Description

Configure this metrics registry to register all metrics collection callbacks with the specified adapter when the registry has metrics collection enabled. This operation first, if there is already an associated metrics adapter, unregisters all the collection callbacks from that adapter, then registers the collection callbacks with the new adapter if metrics collection is enabled. Return 0 on success, and a non‐zero value otherwise.

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

adapter

metrics adapter to associate with this registry

Created with MrDocs