Updated on 2024-11-28 GMT+08:00

Setting Properties

Function Description

You can set the connection properties through the Properties parameter.

In the following example, the socket timeout interval is set to 60s and SSL is not used.

Sample Code

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");