1 | <?php |
||
12 | final class Driver implements \Bernard\Driver |
||
13 | { |
||
14 | private $pheanstalk; |
||
15 | |||
16 | /** |
||
17 | * @param PheanstalkInterface $pheanstalk |
||
18 | */ |
||
19 | public function __construct(PheanstalkInterface $pheanstalk) |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function listQueues() |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function createQueue($queueName) |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function countMessages($queueName) |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function pushMessage($queueName, $message) |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function popMessage($queueName, $duration = 5) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function acknowledgeMessage($queueName, $receipt) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function peekQueue($queueName, $index = 0, $limit = 20) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function removeQueue($queueName) |
||
91 | |||
92 | /** |
||
93 | * {@inheritdoc} |
||
94 | */ |
||
95 | public function info() |
||
102 | } |
||
103 |