更新时间:2023-11-10 GMT+08:00
分享

设置属性

功能介绍

设置连接属性,如下样例代码设置socket超时时间为60s。

代码样例

Properties clickHouseProperties = new Properties();
clickHouseProperties.setProperty(ClickHouseClientOption.CONNECTION_TIMEOUT.getKey(), Integer.toString(60000));
clickHouseProperties.setProperty(ClickHouseClientOption.SSL.getKey(), Boolean.toString(false));
clickHouseProperties.setProperty(ClickHouseClientOption.SSL_MODE.getKey(), "none");

相关文档