![]() |
![]()
| ![]() |
![]()
NAMEDirectory::Queue::Set - object oriented interface to a set of Directory::Queue objects SYNOPSISuse Directory::Queue; use Directory::Queue::Set; $dq1 = Directory::Queue->new(path => "/tmp/q1"); $dq2 = Directory::Queue->new(path => "/tmp/q2"); $dqset = Directory::Queue::Set->new($dq1, $dq2); ($dq, $elt) = $dqset->first(); while ($dq) { # you can now process the element $elt of queue $dq... ($dq, $elt) = $dqset->next(); } DESCRIPTIONThis module can be used to put different queues into a set and browse them as one queue. The elements from all queues are merged together and sorted independently from the queue they belong to. This works both with Directory::Queue::Normal and Directory::Queue::Simple queues. Queues of different types can even be mixed. METHODSThe following methods are available:
SEE ALSODirectory::Queue. AUTHORLionel Cons <http://cern.ch/lionel.cons> Copyright (C) CERN 2010-2022
|