1 | <?php |
||
12 | class LazyRabbitMqDriver implements DriverInterface |
||
13 | { |
||
14 | use SerializerAwareTrait; |
||
15 | |||
16 | /** @var AMQPLazyConnection */ |
||
17 | private $connection; |
||
18 | |||
19 | /** @var AMQPChannel */ |
||
20 | private $channel; |
||
21 | |||
22 | /** @var string */ |
||
23 | private $queue; |
||
24 | |||
25 | /** |
||
26 | * @param AMQPLazyConnection $connection |
||
27 | * @param string $queue |
||
28 | */ |
||
29 | public function __construct(AMQPLazyConnection $connection, $queue) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function send(MessageInterface $message) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function wait(Closure $callback) |
||
67 | |||
68 | private function getChannel() |
||
77 | } |
||
78 |