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 Details

    • SlowQuery

      public SlowQuery()
  • Method Details

    • 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)