/**
  * @param MessageManagerInterface $messageManager
  * @param array $types
  * @param int $pause
  * @param int $batchSize
  * @param int $maxAttempts
  * @param int $attemptDelay
  */
 public function __construct(MessageManagerInterface $messageManager, $types = array(), $pause = 500000, $batchSize = 10, $maxAttempts = 5, $attemptDelay = 10)
 {
     parent::__construct($messageManager, $types, $pause, $batchSize);
     $this->maxAttempts = $maxAttempts;
     $this->attemptDelay = $attemptDelay;
 }
 public function __construct(ManagerRegistry $registry, $pause = 0, $batchSize = 10)
 {
     parent::__construct(new MessageManagerMock('Sonata\\NotificationBundle\\Model\\Message', $registry), array(), $pause, $batchSize);
 }