Updated on 2022-11-18 GMT+08:00

Setting Attributes

Set the connection attributes. In the following sample code, the socket timeout interval is set to 60s.

ClickHouseProperties clickHouseProperties = new ClickHouseProperties();
clickHouseProperties.setSocketTimeout(60000);
clickHouseProperties.setSsl(true);
clickHouseProperties.setSslMode("none");