Class 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 Detail

      • SlowQuery

        public SlowQuery()
    • 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)