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

Method PauseAll

consumer.go:317–326  ·  view source on GitHub ↗

PauseAll implements Consumer.

()

Source from the content-addressed store, hash-verified

315
316// PauseAll implements Consumer.
317func (c *consumer) PauseAll() {
318 c.lock.Lock()
319 defer c.lock.Unlock()
320
321 for _, partitions := range c.children {
322 for _, partitionConsumer := range partitions {
323 partitionConsumer.Pause()
324 }
325 }
326}
327
328// ResumeAll implements Consumer.
329func (c *consumer) ResumeAll() {

Callers

nothing calls this directly

Calls 1

PauseMethod · 0.65

Tested by

no test coverage detected