@Factory @RequiresMetrics @Requires(property="micronaut.metrics.binders.r2dbc.enabled", notEquals="false") public class R2dbcPoolMetricsBinderFactory extends java.lang.Object
Constructor and Description |
---|
R2dbcPoolMetricsBinderFactory() |
Modifier and Type | Method and Description |
---|---|
io.micrometer.core.instrument.binder.MeterBinder |
r2dbcPoolMeterBinder(java.lang.String dataSourceName,
io.r2dbc.spi.ConnectionFactory factory)
Wires beans for each DataSource.
|
@EachBean(value=io.r2dbc.spi.ConnectionFactory.class) @Requires(beans=io.r2dbc.spi.ConnectionFactory.class) public io.micrometer.core.instrument.binder.MeterBinder r2dbcPoolMeterBinder(@Parameter java.lang.String dataSourceName, io.r2dbc.spi.ConnectionFactory factory)
dataSourceName
- The parameterized name of the datasourcefactory
- The datasource factory object to use for the binderConnectionFactory