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

Method ResetOffset

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

ResetOffset resets to the provided offset, alongside a metadata string that represents the state of the partition consumer at that point in time. Reset acts as a counterpart to MarkOffset, the difference being that it allows to reset an offset to an earlier or smaller value, where MarkOffset only al

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

Source from the content-addressed store, hash-verified

868 // reset an offset to an earlier or smaller value, where MarkOffset only
869 // allows incrementing the offset. cf MarkOffset for more details.
870 ResetOffset(topic string, partition int32, offset int64, metadata string)
871
872 // MarkMessage marks a message as consumed.
873 MarkMessage(msg *ConsumerMessage, metadata string)

Implementers 1

consumerGroupSessionconsumer_group.go

Calls

no outgoing calls