| 1 | <?php |
||
| 6 | final class Reject |
||
| 7 | { |
||
| 8 | private $deliveryTag; |
||
| 9 | private $requeue = false; |
||
| 10 | |||
| 11 | 2 | public function __construct(int $deliveryTag) |
|
| 15 | |||
| 16 | /** |
||
| 17 | * This will requeue unacknowledged messages meaning they may be delivered |
||
| 18 | * to a different consumer that the original one |
||
| 19 | */ |
||
| 20 | 1 | public static function requeue(int $deliveryTag): self |
|
| 27 | |||
| 28 | 2 | public function deliveryTag(): int |
|
| 32 | |||
| 33 | 2 | public function shouldRequeue(): bool |
|
| 37 | } |
||
| 38 |