Class EventConfig

    • Constructor Detail

      • EventConfig

        public EventConfig()
      • EventConfig

        public EventConfig​(EventConfig source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getEventType

        public String getEventType()
        Get 事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值
        Returns:
        EventType 事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值
      • setEventType

        public void setEventType​(String EventType)
        Set 事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值
        Parameters:
        EventType - 事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值
      • getThreshold

        public Long getThreshold()
        Get 阈值,单位毫秒。0表示关闭,大于0表示开启
        Returns:
        Threshold 阈值,单位毫秒。0表示关闭,大于0表示开启
      • setThreshold

        public void setThreshold​(Long Threshold)
        Set 阈值,单位毫秒。0表示关闭,大于0表示开启
        Parameters:
        Threshold - 阈值,单位毫秒。0表示关闭,大于0表示开启