Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/en/14-reference/05-connector/14-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ The configuration parameters in properties are as follows:
> **Note**: Enabling auto-reconnect is not effective for fetching result sets. Auto-reconnect is only effective for connections established through parameters specifying the database, and ineffective for later `use db` statements to switch databases.
- TSDBDriver.PROPERTY_KEY_RECONNECT_INTERVAL_MS [`reconnectIntervalMs`]: Auto-reconnect retry interval, in milliseconds, default value 2000. Effective only when PROPERTY_KEY_ENABLE_AUTO_RECONNECT is true.
- TSDBDriver.PROPERTY_KEY_RECONNECT_RETRY_COUNT [`reconnectRetryCount`]: Auto-reconnect retry count, default value 3, effective only when PROPERTY_KEY_ENABLE_AUTO_RECONNECT is true.
- TSDBDriver.PROPERTY_KEY_ADAPTER_HA [`adapterHA`]: Whether to enable adapter high availability. Only takes effect when using WebSocket connections. true: enabled, false: not enabled. Default is false. When enabled, upon successful connection, the client can obtain the list of all adapter endpoints in the cluster for load balancing. This feature requires TDengine version `3.4.2.0` or higher.

---

Expand Down
1 change: 1 addition & 0 deletions docs/zh/14-reference/05-connector/14-java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ properties 中的配置参数如下:
> **注意**:启用自动重连对获取结果集无效。自动重连仅对连接建立时通过参数指定数据库有效,对后面的 `use db` 语句切换数据库无效。
- TSDBDriver.PROPERTY_KEY_RECONNECT_INTERVAL_MS [`reconnectIntervalMs`]:自动重连重试间隔,单位毫秒,默认值 2000。仅在 PROPERTY_KEY_ENABLE_AUTO_RECONNECT 为 true 时生效。
- TSDBDriver.PROPERTY_KEY_RECONNECT_RETRY_COUNT [`reconnectRetryCount`]:自动重连重试次数,默认值 3,仅在 PROPERTY_KEY_ENABLE_AUTO_RECONNECT 为 true 时生效。
- TSDBDriver.PROPERTY_KEY_ADAPTER_HA [`adapterHA`]:是否启用 `adapter` 高可用。仅在使用 WebSocket 连接时生效。true:启用,false:不启用。默认为 false。启用后连接成功即可获取集群所有 `adapter` 端点列表用于负载均衡,需要 TDengine 版本大于等于 `3.4.2.0` 才能支持此特性。

---

Expand Down
Loading