diff --git a/docs/en/07-develop/07-tmq.mdx b/docs/en/07-develop/07-tmq.mdx index a4eb41bd7e2a461dca6d3a9fa9bac39f589ec66c..93291e8e0539fc4f8305097ead79d9432c4b2289 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 11aef1f7e8e9c7e84a66aef229b44f87dc582260..39538f1f15c2341c1be8d39ef4b38aa556125583 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` |