PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backup, Restore, Migration & Clone / 4.1.1
WP STAGING – WordPress Backup, Restore, Migration & Clone v4.1.1
4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / Framework / Queue / SeekableQueueInterface.php
wp-staging / Framework / Queue Last commit date
Storage 2 years ago FileSeekableQueue.php 1 year ago FinishedQueueException.php 5 years ago Queue.php 1 year ago QueueInterface.php 4 years ago SeekableQueueInterface.php 4 years ago
SeekableQueueInterface.php
70 lines
1 <?php
2
3 namespace WPStaging\Framework\Queue;
4
5 interface SeekableQueueInterface
6 {
7 /** @var string Write-only queue. Optimized for writing. */
8 const MODE_WRITE = 'ab';
9
10 /** @var string Read/write queue. Versatile, but a little bit slower. */
11 const MODE_READ_WRITE = 'rb+';
12
13 public function setup($queueName, $queueMode = SeekableQueueInterface::MODE_READ_WRITE);
14
15 /**
16 * Whether the Queue has more items.
17 *
18 * @return bool
19 */
20 public function isFinished();
21
22 /**
23 * Returns the current element in the Queue and move the pointer to the next.
24 *
25 * @return mixed
26 */
27 public function dequeue();
28
29 /**
30 * Append item to the end of the queue
31 *
32 * @param mixed $data
33 */
34 public function enqueue($data);
35
36 /**
37 * Push array of items to the end of the queue
38 *
39 * @param array $data
40 */
41 public function enqueueMany(array $data = []);
42
43 /**
44 * Rollback the pointer to repeat the item that was just returned.
45 *
46 * @return mixed
47 */
48 public function retry($dequeue = true);
49
50 /**
51 * Removes all the items from the queue
52 */
53 public function reset();
54
55 /**
56 * Seek the Queue to given offset
57 */
58 public function seek($offset);
59
60 /**
61 * Returns the Queue offset
62 */
63 public function getOffset();
64
65 /**
66 * Close all connection to the queue
67 */
68 public function shutdown();
69 }
70