Class DataSourceProxyProperties.SlowQuery

java.lang.Object
com.github.gavlyukovskiy.boot.jdbc.decorator.dsproxy.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

    • isEnableLogging

      public boolean isEnableLogging()
    • getLoggerName

      public String getLoggerName()
    • getLogLevel

      public String getLogLevel()
    • getThreshold

      @Deprecated(since="1.11.0", forRemoval=true) public long getThreshold()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getThresholdDuration

      public Duration getThresholdDuration()
    • setEnableLogging

      public void setEnableLogging(boolean enableLogging)
    • setLoggerName

      public void setLoggerName(String loggerName)
    • setLogLevel

      public void setLogLevel(String logLevel)
    • setThreshold

      public void setThreshold(Duration threshold)