1 | <?php |
||
12 | class PersistentQueue extends AbstractQueue |
||
13 | { |
||
14 | protected $driver; |
||
15 | protected $serializer; |
||
16 | protected $receipts; |
||
17 | |||
18 | /** |
||
19 | * @param string $name |
||
20 | * @param Driver $driver |
||
21 | * @param Serializer $serializer |
||
22 | */ |
||
23 | public function __construct($name, Driver $driver, Serializer $serializer) |
||
33 | |||
34 | /** |
||
35 | * Register with the driver |
||
36 | */ |
||
37 | public function register() |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function count() |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function close() |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function enqueue(Envelope $envelope) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | public function acknowledge(Envelope $envelope) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function dequeue() |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function peek($index = 0, $limit = 20) |
||
123 | |||
124 | /** |
||
125 | * @param Envelope $envelope The envelope. |
||
126 | * @return mixed |
||
127 | */ |
||
128 | public function getReceipt(Envelope $envelope) |
||
136 | } |
||
137 |