PauseAll implements Consumer.
()
| 315 | |
| 316 | // PauseAll implements Consumer. |
| 317 | func (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. |
| 329 | func (c *consumer) ResumeAll() { |