Help Center/ MapReduce Service/ Developer Guide (LTS)/ ClickHouse Development Guide (Security Mode)/ Sample Code/ Setting Attributes
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"); Parent topic: Sample Code
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.