| 1 | <?php |
||
| 10 | final class Driver implements \Bernard\Driver |
||
| 11 | { |
||
| 12 | private $pheanstalk; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param PheanstalkInterface $pheanstalk |
||
| 16 | */ |
||
| 17 | 8 | public function __construct(PheanstalkInterface $pheanstalk) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | 1 | public function listQueues() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function createQueue($queueName) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | 1 | public function countMessages($queueName) |
|
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | 1 | public function pushMessage($queueName, $message) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | 1 | public function popMessage($queueName, $duration = 5) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | 1 | public function acknowledgeMessage($queueName, $receipt) |
|
| 74 | |||
| 75 | /** |
||
| 76 | * {@inheritdoc} |
||
| 77 | */ |
||
| 78 | 1 | public function peekQueue($queueName, $index = 0, $limit = 20) |
|
| 82 | |||
| 83 | /** |
||
| 84 | * {@inheritdoc} |
||
| 85 | */ |
||
| 86 | public function removeQueue($queueName) |
||
| 89 | |||
| 90 | /** |
||
| 91 | * {@inheritdoc} |
||
| 92 | */ |
||
| 93 | 1 | public function info() |
|
| 100 | } |
||
| 101 |