Class QueryLogger.ConstantThresholdQueryLogger

    • Method Detail

      • getSlowQueryLatencyThresholdMillis

        public long getSlowQueryLatencyThresholdMillis()
        Return the threshold in milliseconds beyond which queries are considered 'slow' and logged as such by the driver. The default value is QueryLogger.DEFAULT_SLOW_QUERY_THRESHOLD_MS.
        Returns:
        The threshold in milliseconds beyond which queries are considered 'slow' and logged as such by the driver.
      • setSlowQueryLatencyThresholdMillis

        public void setSlowQueryLatencyThresholdMillis​(long slowQueryLatencyThresholdMillis)
        Set the threshold in milliseconds beyond which queries are considered 'slow' and logged as such by the driver.
        Parameters:
        slowQueryLatencyThresholdMillis - Slow queries threshold in milliseconds. It must be strictly positive.
        Throws:
        IllegalArgumentException - if slowQueryLatencyThresholdMillis <= 0.
      • maybeLogSlowQuery

        protected void maybeLogSlowQuery​(Host host,
                                         Statement statement,
                                         long latencyMs)