39.6. 消息标头
Google Pubsub 组件支持 5 个消息标头,如下所列:
| Name | 描述 | 默认值 | 类型 |
|---|---|---|---|
| CamelGooglePubsubMessageId (common) 恒定: MESSAGE_ID | 发布消息时由服务器分配的消息的 ID。 | 字符串 | |
| CamelGooglePubsubMsgAckId (consumer) 常数: ACK_ID | 用于确认收到的消息的 ID。 | 字符串 | |
| CamelGooglePubsubPublishTime (consumer) 恒定: PUBLISH_TIME | 发布消息的时间。 | Timestamp | |
| CamelGooglePubsubAttributes (common) 常数 : ATTRIBUTES | 消息的属性。 | Map | |
| CamelGooglePubsubOrderingKey (producer) 常数: ORDERING_KEY | 如果非空,请标识应遵守发布顺序的相关消息。 | 字符串 |