MCPcopy
hub / github.com/IBM/sarama / MarkOffset

Method MarkOffset

consumer_group.go:858–858  ·  view source on GitHub ↗

MarkOffset marks the provided offset, alongside a metadata string that represents the state of the partition consumer at that point in time. The metadata string can be used by another consumer to restore that state, so it can resume consumption. To follow upstream conventions, you are expected to m

(topic string, partition int32, offset int64, metadata string)

Source from the content-addressed store, hash-verified

856 // your application crashes. This means that you may end up processing the same
857 // message twice, and your processing should ideally be idempotent.
858 MarkOffset(topic string, partition int32, offset int64, metadata string)
859
860 // Commit the offset to the backend
861 //

Implementers 1

consumerGroupSessionconsumer_group.go

Calls

no outgoing calls