From 0a38e63c34fddb37ad4825f66d7656e1adc5fe63 Mon Sep 17 00:00:00 2001 From: gccgdb1234 Date: Mon, 22 May 2023 09:33:17 +0800 Subject: [PATCH] doc: add td.connect.type --- docs/en/07-develop/07-tmq.mdx | 9 +++++---- docs/zh/07-develop/07-tmq.mdx | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/en/07-develop/07-tmq.mdx b/docs/en/07-develop/07-tmq.mdx index a4eb41bd7e..93291e8e05 100644 --- a/docs/en/07-develop/07-tmq.mdx +++ b/docs/en/07-develop/07-tmq.mdx @@ -285,10 +285,11 @@ You configure the following parameters when creating a consumer: | Parameter | Type | Description | Remarks | | :----------------------------: | :-----: | -------------------------------------------------------- | ------------------------------------------- | -| `td.connect.ip` | string | Used in establishing a connection; same as `taos_connect` | Only valid for establishing native connection | -| `td.connect.user` | string | Used in establishing a connection; same as `taos_connect` | Only valid for establishing native connection | -| `td.connect.pass` | string | Used in establishing a connection; same as `taos_connect` | Only valid for establishing native connection | -| `td.connect.port` | string | Used in establishing a connection; same as `taos_connect` | Only valid for establishing native connection | +| `td.connect.type` | string | connection type | Only valid for Java connector: "jni" means native connection, "ws" means websocket connection, the default is "jni" | +| `td.connect.ip` | string | IP address of the server side | | +| `td.connect.user` | string | User Name | | +| `td.connect.pass` | string | Password | | +| `td.connect.port` | string | Port of the server side | | | `group.id` | string | Consumer group ID; consumers with the same ID are in the same group | **Required**. Maximum length: 192. | | `client.id` | string | Client ID | Maximum length: 192. | | `auto.offset.reset` | enum | Initial offset for the consumer group | Specify `earliest`, `latest`, or `none`(default) | diff --git a/docs/zh/07-develop/07-tmq.mdx b/docs/zh/07-develop/07-tmq.mdx index 11aef1f7e8..39538f1f15 100644 --- a/docs/zh/07-develop/07-tmq.mdx +++ b/docs/zh/07-develop/07-tmq.mdx @@ -405,10 +405,11 @@ consumer = Consumer({"group.id": "local", "td.connect.ip": "127.0.0.1"}) | 参数名称 | 类型 | 参数说明 | 备注 | |:------:|:----:|:-------:|:---:| -| `td.connect.ip` | string | 用于创建连接|| -| `td.connect.user` | string | 用于创建连接|| -| `td.connect.pass` | string | 用于创建连接|| -| `td.connect.port` | string | 用于创建连接|| +| `td.connect.type` | string | 指定连接类型 |仅在Java连接器中有效,"jni" 表示原生连接,"ws"表示 websocket 连接,默认为 "jni" | +| `td.connect.ip` | string | 服务端 IP 地址|| +| `td.connect.user` | string | 用户名|| +| `td.connect.pass` | string | 密码|| +| `td.connect.port` | string | 服务端 端口号|| | `group.id` | string | 消费组 ID,同一消费组共享消费进度 | **必填项**。最大长度:192 | | `client.id` | string | 客户端 ID | 最大长度:192 | | `msg.with.table.name` | string | 是否允许从消息中解析表名,不适用于列订阅 | 合法值:`true`, `false` | -- GitLab