4.2. 定义


4.2.1. AssignedTopicPartitions

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

4.2.2. BridgeInfo

有关 Kafka Bridge 实例的信息。

Expand
Name模式

bridge_version
optional

字符串

4.2.3. 消费者

Expand
Name描述模式

auto.offset.reset
optional

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

字符串

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
可选

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

字符串

4.2.4. ConsumerRecord

Expand
Name模式

标头
可选

KafkaHeaderList

key
可选

字符串

偏移
可选

integer (int64)

分区
可选

integer (int32)

Topic
可选

字符串

value
可选

字符串

4.2.5. ConsumerRecordList

type : < ConsumerRecord > array

4.2.6. CreatedConsumer

Expand
Name描述模式

base_uri
optional

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

字符串

instance_id
optional

组中消费者实例的唯一 ID。

字符串

4.2.7. Error

Expand
Name模式

error_code
optional

integer (int32)

message
可选

字符串

4.2.8. KafkaHeader

Expand
Name描述模式

key
必需

 

字符串

需要
的值

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

字符串(字节)

4.2.9. KafkaHeaderList

类型 : < KafkaHeader > 数组

4.2.10. OffsetCommitSeek

Expand
Name模式

需要 偏移

integer (int64)

分区
是必需的

integer (int32)

主题
必需

字符串

4.2.11. OffsetCommitSeekList

Expand
Name模式

偏移
可选

< OffsetCommitSeek > 数组

4.2.12. OffsetRecordSent

Expand
Name模式

偏移
可选

integer (int64)

分区
可选

integer (int32)

4.2.13. OffsetRecordSentList

Expand
Name模式

偏移
可选

< OffsetRecordSent > 数组

4.2.14. OffsetsSummary

Expand
Name模式

beginning_offset
optional

integer (int64)

end_offset
optional

integer (int64)

4.2.15. 分区

Expand
Name模式

分区
可选

integer (int32)

Topic
可选

字符串

4.2.16. PartitionMetadata

Expand
Name模式

领导
可选

integer (int32)

分区
可选

integer (int32)

replicas
可选

&lt ; replica > 数组

4.2.17. 分区

Expand
Name模式

分区
可选

&lt ; partition > 数组

4.2.18. ProducerRecord

Expand
Name模式

标头
可选

KafkaHeaderList

分区
可选

integer (int32)

4.2.19. ProducerRecordList

Expand
Name模式

记录
可选

< ProducerRecord > 数组

4.2.20. ProducerRecordToPartition

键入 : 对象

4.2.21. ProducerRecordToPartitionList

Expand
Name模式

记录
可选

< ProducerRecordToPartition > array

4.2.22. replica

Expand
Name模式

broker
可选

integer (int32)

in_sync
optional

布尔值

领导
可选

布尔值

4.2.23. SubscribedTopicList

Expand
Name模式

分区
可选

< AssignedTopicPartitions > 数组

topics
可选

主题

4.2.24. TopicMetadata

Expand
Name描述模式

配置
可选

每个主题配置覆盖

< string, string > map

name
可选

主题的名称

字符串

分区
可选

 

< PartitionMetadata > array

4.2.25. topics

Expand
Name描述模式

topic_pattern
optional

匹配多个主题的正则表达式主题模式

字符串

topics
可选

 

< string > 数字

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2026 Red Hat
返回顶部