4.2. 定义


4.2.1. AssignedTopicPartitions

类型 : < string, < integer (int32)> array > map

4.2.2. BridgeInfo

有关 Kafka Bridge 实例的信息。

Expand
名称模式

bridge_version
optional

字符串

4.2.3. 消费者

Expand
名称描述模式

auto.offset.reset
optional

重置消费者的偏移位置。如果设置为 latest (默认),则会从最新的偏移中读取消息。如果设置为 最早的,则会从第一个偏移中读取消息。

字符串

consumer.request.timeout.ms
optional

设置消费者等待请求消息的最大时间(以毫秒为单位)。如果在没有响应的情况下达到超时时间,则返回错误。默认为 30000 (30 秒)。

整数

enable.auto.commit
optional

如果设置为 true (默认),则会自动为消费者提交消息偏移。如果设置为 false,则必须手动提交消息偏移。

布尔值

fetch.min.bytes
optional

设置消费者接收的最小数据量,以字节为单位。代理会等待数据超过这个数量。默认为 1 字节。

整数

格式
可选

consumer 的允许消息格式,可以是 二进制 (默认)或 json。消息转换为 JSON 格式。

字符串

isolation.level
optional

如果设置为 read_uncommitted (默认),则会检索所有事务记录,以调查任何事务结果。如果设置为 read_committed,则会检索来自已提交事务的记录。

字符串

name
可选

使用者实例的唯一名称。该名称在消费者组的范围中是唯一的。该名称在 URL 中使用。如果没有指定名称,则会分配一个随机生成的名称。

字符串

4.2.4. ConsumerRecord

Expand
名称模式

标头
可选

KafkaHeaderList

key
可选

字符串

偏移
可选

integer (int64)

分区
可选

integer (int32)

Topic
可选

字符串

value
可选

字符串

4.2.5. ConsumerRecordList

type : < ConsumerRecord > array

4.2.6. CreatedConsumer

Expand
名称描述模式

base_uri
optional

用于为针对此消费者实例的后续请求的构建 URI 的基础 URI。

字符串

instance_id
optional

组中使用者实例的唯一 ID。

字符串

4.2.7. Error

Expand
名称模式

error_code
optional

integer (int32)

message
可选

字符串

4.2.8. KafkaHeader

Expand
名称描述模式

key
必需

 

字符串

需要
的值

标头值采用二进制格式, base64 编码的
Pattern : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"

字符串(字节)

4.2.9. KafkaHeaderList

类型 : < KafkaHeader > 数组

4.2.10. OffsetCommitSeek

Expand
名称模式

需要 偏移

integer (int64)

分区
是必需的

integer (int32)

主题
必需

字符串

4.2.11. OffsetCommitSeekList

Expand
名称模式

偏移
可选

< OffsetCommitSeek > 数组

4.2.12. OffsetRecordSent

Expand
名称模式

偏移
可选

integer (int64)

分区
可选

integer (int32)

4.2.13. OffsetRecordSentList

Expand
名称模式

偏移
可选

< OffsetRecordSent > 数组

4.2.14. OffsetsSummary

Expand
名称模式

beginning_offset
optional

integer (int64)

end_offset
optional

integer (int64)

4.2.15. 分区

Expand
名称模式

分区
可选

integer (int32)

Topic
可选

字符串

4.2.16. PartitionMetadata

Expand
名称模式

领导
可选

integer (int32)

分区
可选

integer (int32)

replicas
可选

&lt ; replica > 数组

4.2.17. 分区

Expand
名称模式

分区
可选

&lt ; partition > 数组

4.2.18. ProducerRecord

Expand
名称模式

标头
可选

KafkaHeaderList

分区
可选

integer (int32)

4.2.19. ProducerRecordList

Expand
名称模式

记录
可选

< ProducerRecord > 数组

4.2.20. ProducerRecordToPartition

Expand
名称模式

标头
可选

KafkaHeaderList

4.2.21. ProducerRecordToPartitionList

Expand
名称模式

记录
可选

< ProducerRecordToPartition > array

4.2.22. replica

Expand
名称模式

broker
可选

integer (int32)

in_sync
optional

布尔值

领导
可选

布尔值

4.2.23. SubscribedTopicList

Expand
名称模式

分区
可选

< AssignedTopicPartitions > 数组

topics
可选

主题

4.2.24. TopicMetadata

Expand
名称描述模式

配置
可选

每个主题配置覆盖

< string, string > map

name
可选

主题的名称

字符串

分区
可选

 

< PartitionMetadata > array

4.2.25. topics

Expand
名称描述模式

topic_pattern
optional

用于匹配多个主题的 regex 主题模式

字符串

topics
可选

 

< string > 数字

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部