Help Center/
CloudTable Service/
Developer Guide/
ClickHouse Application Development Guide/
Development Process/
Sample Code/
Setting Properties
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");
Parent topic: Sample Code
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot