/**
  * @inheritdoc
  */
 public function limitReached(Consumer $consumer)
 {
     if ($consumer->getProcessed() >= $this->limit) {
         throw LimitReachedException::withMessage(sprintf('Maximum number of messages consumed (%d)', $this->limit));
     }
 }