Class DataSourceProxyProperties.SlowQuery
- java.lang.Object
-
- org.springframework.cloud.sleuth.instrument.jdbc.DataSourceProxyProperties.SlowQuery
-
- Enclosing class:
- DataSourceProxyProperties
public static class DataSourceProxyProperties.SlowQuery extends Object
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 Constructor Description SlowQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLoggerName()StringgetLogLevel()longgetThreshold()voidsetEnableLogging(boolean enableLogging)voidsetLoggerName(String loggerName)voidsetLogLevel(String logLevel)voidsetThreshold(long threshold)
-
-
-
Method Detail
-
setEnableLogging
public void setEnableLogging(boolean enableLogging)
-
getLoggerName
public String getLoggerName()
-
setLoggerName
public void setLoggerName(String loggerName)
-
getLogLevel
public String getLogLevel()
-
setLogLevel
public void setLogLevel(String logLevel)
-
getThreshold
public long getThreshold()
-
setThreshold
public void setThreshold(long threshold)
-
-