@Requires(classes=io.micronaut.management.health.indicator.HealthIndicator.class) @Requires(beans=io.r2dbc.spi.ConnectionFactory.class) @Requires(property="endpoints.health.r2dbc.enabled",value="true",defaultValue="true")
@EachBean(value=io.r2dbc.spi.ConnectionFactory.class)
public class R2dbcHealthIndicator
extends java.lang.Object
implements io.micronaut.management.health.indicator.HealthIndicator
R2dbcHealthCondition
.Constructor and Description |
---|
R2dbcHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory,
R2dbcHealthConfiguration healthConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
extractQueryResult(io.r2dbc.spi.Row row,
io.r2dbc.spi.RowMetadata metadata) |
org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> |
getResult() |
@Inject public R2dbcHealthIndicator(io.r2dbc.spi.ConnectionFactory connectionFactory, R2dbcHealthConfiguration healthConfiguration)
public org.reactivestreams.Publisher<io.micronaut.management.health.indicator.HealthResult> getResult()
getResult
in interface io.micronaut.management.health.indicator.HealthIndicator
protected java.util.Map<java.lang.String,java.lang.Object> extractQueryResult(io.r2dbc.spi.Row row, io.r2dbc.spi.RowMetadata metadata)
row
- to extract metadata for healthmetadata
- for row available for extraction row data