PauseAll implements Consumer.
()
| 165 | |
| 166 | // PauseAll implements Consumer. |
| 167 | func (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. |
| 179 | func (c *Consumer) ResumeAll() { |