Skip to content

Commit

Permalink
Update consumer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Apr 2, 2021
1 parent 20e5761 commit ff053f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/consumer.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Class `longlang\phpkafka\Consumer\ConsumerConfig`
| maxWriteAttempts | Maximum attempts to write | `3` |
| client | Kafka client used. `null` by default means auto recognition. | `null` |
| socket | Kafka Socket used. `null` by default means auto recognition. | `null` |
| broker | broker format `'127.0.0.1:9092'` | `null` |
| brokers | Alias is broker. Format: `'127.0.0.1:9092,127.0.0.1:9093'` or `['127.0.0.1:9092','127.0.0.1:9093']` | `null` |
| bootstrapServers | Alias bootstrapServer, used to boot the server. If configured, the server will be connected and brokers updated. Format `'127.0.0.1:9092,127.0.0.1:9093'` or `['127.0.0.1:9092','127.0.0.1:9093']`. | `null` |
| updateBrokers | Auto update brokers. | `true` |
| interval | If the message is not received, try again internals. `0` is default and means no intervals(unit: second, decimal). | `0` |
Expand Down
2 changes: 1 addition & 1 deletion doc/consumer.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| maxWriteAttempts | 最大写入尝试次数 | `3` |
| client | 使用哪个 Kafka 客户端类,默认为`null`时根据场景自动识别 | `null` |
| socket | 使用哪个 Kafka Socket 类,默认为`null`时根据场景自动识别 | `null` |
| broker | broker,格式:`'127.0.0.1:9092'` | `null` |
| brokers | 别名 broker,格式:`'127.0.0.1:9092,127.0.0.1:9093'``['127.0.0.1:9092','127.0.0.1:9093']` | `null` |
| bootstrapServers | 别名bootstrapServer,引导服务器,如果配置了该值,会自动连接该服务器,并自动更新 brokers。格式:`'127.0.0.1:9092,127.0.0.1:9093'``['127.0.0.1:9092','127.0.0.1:9093']` | `null` |
| updateBrokers | 是否自动更新 brokers | `true` |
| interval | 未获取消息到消息时,延迟多少秒再次尝试,默认为`0`则不延迟(单位:秒,支持小数) | `0` |
Expand Down

0 comments on commit ff053f4

Please sign in to comment.