Interface ClickHouseConfigChangeListener<T>


public interface ClickHouseConfigChangeListener<T>
Configuration change listener.
  • Method Details

    • optionChanged

      default void optionChanged(T source, ClickHouseOption option, Serializable oldValue, Serializable newValue)
      Triggered when ClickHouseOption was changed. Removing an option is same as reseting its value to null.
      Parameters:
      source - source of the event
      option - the changed option, which should never be null
      oldValue - old option value, which could be null
      newValue - new option value, which could be null
    • propertyChanged

      default void propertyChanged(T source, String property, Object oldValue, Object newValue)
      Triggered when property of source was changed.
      Parameters:
      source - source of the event
      property - name of the changed property, which should never be null
      oldValue - old option value, which could be null
      newValue - new option value, which could be null
    • settingChanged

      default void settingChanged(T source, String setting, Serializable oldValue, Serializable newValue)
      Triggered when ClickHouse setting(declared on client-side) was changed. Removing a setting is same as reseting its value to null.
      Parameters:
      source - source of the event
      setting - the changed setting, which should never be null
      oldValue - old option value, which could be null
      newValue - new option value, which could be null