diff --git a/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseConfig.java b/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseConfig.java index 8a9eecb28..8e48dc236 100644 --- a/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseConfig.java +++ b/clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseConfig.java @@ -26,7 +26,7 @@ */ public class ClickHouseConfig implements Serializable { static final class ClientOptions { - private static final ClientOptions instance = new ClientOptions(); + private static final ClientOptions INSTANCE = new ClientOptions(); private final Map customOptions; @@ -138,7 +138,7 @@ protected static final Object mergeMetricRegistry(List list) { public static Map toClientOptions(Map props) { Map options = new HashMap<>(); if (props != null && !props.isEmpty()) { - Map customOptions = ClientOptions.instance.customOptions; + Map customOptions = ClientOptions.INSTANCE.customOptions; for (Entry e : props.entrySet()) { if (e.getKey() == null || e.getValue() == null) { continue; @@ -202,6 +202,7 @@ public static Map toClientOptions(Map prop private final String sslKey; private final boolean useBlockingQueue; private final boolean useObjectsInArray; + private final boolean useNoProxy; private final boolean useServerTimeZone; private final boolean useServerTimeZoneForDates; private final TimeZone timeZoneForDate; @@ -297,6 +298,7 @@ public ClickHouseConfig(Map options, ClickHouseC this.sslKey = (String) getOption(ClickHouseClientOption.SSL_KEY); this.useBlockingQueue = (boolean) getOption(ClickHouseClientOption.USE_BLOCKING_QUEUE); this.useObjectsInArray = (boolean) getOption(ClickHouseClientOption.USE_OBJECTS_IN_ARRAYS); + this.useNoProxy = (boolean) getOption(ClickHouseClientOption.USE_NO_PROXY); this.useServerTimeZone = (boolean) getOption(ClickHouseClientOption.USE_SERVER_TIME_ZONE); this.useServerTimeZoneForDates = (boolean) getOption(ClickHouseClientOption.USE_SERVER_TIME_ZONE_FOR_DATES); @@ -649,6 +651,10 @@ public boolean isUseObjectsInArray() { return useObjectsInArray; } + public boolean isUseNoProxy() { + return useNoProxy; + } + public boolean isUseServerTimeZone() { return useServerTimeZone; }