我有三个问题:
// OffsetOldest表示代理上可用的最古老的偏移量 //分区。 OffsetOldest int64 = -2
发布于 2019-07-16 14:02:25
0)。- Start consuming from the `earliest` offset
- Start consuming from the `latest` offset
- Start consuming from a specific offset
sarama.OffsetOldest。从文档,const ( // OffsetNewest )表示日志头偏移量,即将//分配给将生成给分区的下一条消息的偏移量。您可以将其发送到客户端的GetOffset方法以获取此偏移量,或者当//调用ConsumePartition开始使用新消息时。OffsetNewest int64 = -1 // OffsetOldest表示代理上可用于//分区的最古老的偏移量。您可以将其发送到客户端的GetOffset方法以获取此//偏移量,或者在调用ConsumePartition以从代理上仍然可用的//最老偏移量开始消费时。OffsetOldest int64 = -2 )
https://stackoverflow.com/questions/57058504
复制相似问题