Class DataSourceProxyProperties.SlowQuery
java.lang.Object
com.github.gavlyukovskiy.boot.jdbc.decorator.dsproxy.DataSourceProxyProperties.SlowQuery
- Enclosing class:
- DataSourceProxyProperties
Properties to configure slow query logging listener.
- See Also:
-
ProxyDataSourceBuilder.logSlowQueryToSysOut(long, TimeUnit)ProxyDataSourceBuilder.logSlowQueryBySlf4j(long, TimeUnit)ProxyDataSourceBuilder.logSlowQueryByCommons(long, TimeUnit)ProxyDataSourceBuilder.logSlowQueryByJUL(long, TimeUnit)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated, for removal: This API element is subject to removal in a future version.booleanvoidsetEnableLogging(boolean enableLogging) voidsetLoggerName(String loggerName) voidsetLogLevel(String logLevel) voidsetThreshold(Duration threshold)
-
Constructor Details
-
SlowQuery
public SlowQuery()
-
-
Method Details
-
isEnableLogging
public boolean isEnableLogging() -
getLoggerName
-
getLogLevel
-
getThreshold
Deprecated, for removal: This API element is subject to removal in a future version.UsegetThresholdDuration()instead. -
getThresholdDuration
-
setEnableLogging
public void setEnableLogging(boolean enableLogging) -
setLoggerName
-
setLogLevel
-
setThreshold
-
getThresholdDuration()instead.