1 | <?php |
||
10 | class Driver implements DriverInterface, ContainerAwareInterface |
||
11 | { |
||
12 | use ContainerAwareTrait; |
||
13 | use QueueManagerAwareTrait; |
||
14 | |||
15 | protected $debug; |
||
16 | |||
17 | public function getConsumer($queueName) |
||
25 | |||
26 | protected function getQueueCallback($queueName) |
||
34 | |||
35 | public function acceptMessage($message) |
||
39 | |||
40 | /** |
||
41 | * Unlike the RabbitMQ driver, we do not have to deal with a native message type from the underlying library. |
||
42 | * So we just let the Producer create messages of the good type, and decoding them becomes a no-op |
||
43 | * |
||
44 | * @param \Kaliop\Queueing\Plugins\KinesisBundle\Adapter\Kinesis\Message $message |
||
45 | * @return \Kaliop\Queueing\Plugins\KinesisBundle\Adapter\Kinesis\Message |
||
46 | */ |
||
47 | public function decodeMessage($message) |
||
51 | |||
52 | /** |
||
53 | * @param string $queueName |
||
54 | * @return \Kaliop\QueueingBundle\Queue\ProducerInterface |
||
55 | */ |
||
56 | public function getProducer($queueName) |
||
63 | |||
64 | /** |
||
65 | * @param string $queueName |
||
66 | * @return \Kaliop\QueueingBundle\Queue\QueueManagerInterface |
||
67 | */ |
||
68 | public function getQueueManager($queueName) |
||
74 | |||
75 | public function setDebug($debug) |
||
81 | } |
||
82 |