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

Method PauseAll

mocks/consumer.go:167–176  ·  view source on GitHub ↗

PauseAll implements Consumer.

()

Source from the content-addressed store, hash-verified

165
166// PauseAll implements Consumer.
167func (c *Consumer) PauseAll() {
168 c.l.Lock()
169 defer c.l.Unlock()
170
171 for _, partitions := range c.partitionConsumers {
172 for _, partitionConsumer := range partitions {
173 partitionConsumer.Pause()
174 }
175 }
176}
177
178// ResumeAll implements Consumer.
179func (c *Consumer) ResumeAll() {

Callers

nothing calls this directly

Implementers 2

consumerconsumer.go
Consumermocks/consumer.go

Calls 1

PauseMethod · 0.65

Tested by

no test coverage detected