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

Method ResetOffset

consumer_group.go:994–998  ·  view source on GitHub ↗
(topic string, partition int32, offset int64, metadata string)

Source from the content-addressed store, hash-verified

992}
993
994func (s *consumerGroupSession) ResetOffset(topic string, partition int32, offset int64, metadata string) {
995 if pom := s.offsets.findPOM(topic, partition); pom != nil {
996 pom.ResetOffset(offset, metadata)
997 }
998}
999
1000func (s *consumerGroupSession) MarkMessage(msg *ConsumerMessage, metadata string) {
1001 s.MarkOffset(msg.Topic, msg.Partition, msg.Offset+1, metadata)

Callers

nothing calls this directly

Calls 2

findPOMMethod · 0.80
ResetOffsetMethod · 0.65

Tested by

no test coverage detected