1 | <?php |
||
19 | class ErroneousMessageIterator extends MessageManagerMessageIterator |
||
20 | { |
||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | protected $maxAttempts; |
||
25 | |||
26 | /** |
||
27 | * @var int |
||
28 | */ |
||
29 | protected $attemptDelay; |
||
30 | |||
31 | /** |
||
32 | * @param array $types |
||
33 | * @param int $pause |
||
34 | * @param int $batchSize |
||
35 | * @param int $maxAttempts |
||
36 | * @param int $attemptDelay |
||
37 | */ |
||
38 | public function __construct(MessageManagerInterface $messageManager, $types = [], $pause = 500000, $batchSize = 10, $maxAttempts = 5, $attemptDelay = 10) |
||
45 | |||
46 | /** |
||
47 | * Find messages in error. |
||
48 | * |
||
49 | * @param $types |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | protected function findNextMessages($types) |
||
63 | } |
||
64 |