1 | <?php |
||
14 | class IronMqDriver extends AbstractPrefetchDriver |
||
15 | { |
||
16 | protected $ironmq; |
||
17 | |||
18 | /** |
||
19 | * @param IronMQ $ironmq |
||
20 | * @param int|null $prefetch |
||
21 | */ |
||
22 | public function __construct(IronMQ $ironmq, $prefetch = null) |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function listQueues() |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | public function createQueue($queueName, array $options = []) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function countMessages($queueName) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function pushMessage($queueName, $message, array $options = []) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function popMessage($queueName, $duration = 5) |
||
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | public function acknowledgeMessage($queueName, $receipt) |
||
109 | |||
110 | /** |
||
111 | * IronMQ does not support an offset when peeking messages. |
||
112 | * |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function peekQueue($queueName, $index = 0, $limit = 20) |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | public function removeQueue($queueName) |
||
131 | |||
132 | /** |
||
133 | * {@inheritdoc} |
||
134 | */ |
||
135 | public function info() |
||
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | public function configurePushOptions(OptionsResolver $resolver) |
||
153 | |||
154 | /** |
||
155 | * The missing array_pluck but for objects array |
||
156 | * |
||
157 | * @param array $objects |
||
158 | * @param string $property |
||
159 | * |
||
160 | * @return array |
||
161 | */ |
||
162 | protected function pluck(array $objects, $property) |
||
170 | } |
||
171 |