Package io.micronaut.r2dbc.config
Class R2dbcHealthConfiguration
java.lang.Object
io.micronaut.r2dbc.config.R2dbcHealthConfiguration
@ConfigurationProperties("endpoints.health.r2dbc")
public class R2dbcHealthConfiguration
extends Object
Configuration for R2DBC Health Indicator.
- Since:
- 2.1.0
- Author:
- Anton Kurako (GoodforGod)
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
R2dbcHealthConfiguration
public R2dbcHealthConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Returns:
- true if health indicator is enabled
-
getHealthQuery
- Parameters:
metadataName
- name of r2dbc driver from metadataConnectionFactoryMetadata.getName()
- Returns:
- SQL query to return version for specified database
- See Also:
-