Skip to content

Commit

Permalink
Allow any additional options while creating custom socket factory
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankvadariya committed Jul 13, 2023
1 parent fa8a9c9 commit beb77c3
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ public enum ClickHouseHttpOption implements ClickHouseOption {
* </ul>
*/
CUSTOM_SECURE_SOCKET_FACTORY("custom_secure_socket_factory", "", "Custom https socket factory class name."),
/**
* Additional HTTPS socket factory options. Only useful only when {@link #CUSTOM_SECURE_SOCKET_FACTORY} is set.
* Accessible {@code com.clickhouse.client.ClickHouseConfig} through {@link #CUSTOM_SECURE_SOCKET_FACTORY} socket factory class constructor.
*/
CUSTOM_SECURE_SOCKET_FACTORY_OPTIONS("custom_secure_socket_factory_options", "",
"Additional properties to be useful while creating an instance of CUSTOM_SECURE_SOCKET_FACTORY. "
+ "Properties are accessible through ClickHouseConfig."),
/**
* Custom HTTP socket factory class name. Takes effect only when CONNECTION_PROVIDER is set to APACHE_HTTP_CLIENT.<br/>
* Given class should
Expand All @@ -44,6 +51,13 @@ public enum ClickHouseHttpOption implements ClickHouseOption {
* </ul>
*/
CUSTOM_SOCKET_FACTORY("custom_socket_factory", "", "Custom http socket factory class name."),
/**
* Additional HTTP socket factory options. Only useful only when {@link #CUSTOM_SOCKET_FACTORY} is set.
* Accessible from {@code com.clickhouse.client.ClickHouseConfig} through {@link #CUSTOM_SOCKET_FACTORY} socket factory class constructor.
*/
CUSTOM_SOCKET_FACTORY_OPTIONS("custom_socket_factory_options", "",
"Additional properties to be useful while creating an instance of CUSTOM_SOCKET_FACTORY. "
+ "Properties are accessible through ClickHouseConfig."),
/**
* Default server response.
*/
Expand Down

0 comments on commit beb77c3

Please sign in to comment.