1 | <?php |
||
9 | class PhpAmqpLibMessageProvider implements MessageProviderInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var AMQPChannel |
||
13 | */ |
||
14 | private $channel; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $queueName; |
||
20 | |||
21 | /** |
||
22 | * @param AMQPChannel $channel |
||
23 | * @param string $queueName |
||
24 | */ |
||
25 | public function __construct(AMQPChannel $channel, $queueName) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function get() |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function ack(Message $message) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function nack(Message $message, $requeue = false) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function getQueueName() |
||
92 | } |
||
93 |