Labrador::Common::URLAlloc
use Labrador::Common::URLAlloc; use Labrador::Common::URLAlloc::Delay; my $urlalloc = Labrador::Common::URLAlloc::new( 'Labrador::Common::URLAlloc::Delay', $data, $urlstates, $config); $urlalloc->new_url('http://www.gla.ac.uk/#'); print $urlalloc->get_url();
Central URL queueing class, though it must be implemented. Examples of child classes are Delay, BFS, DFS.
NB: This class is abstract, and must be implemented by a child class.
Maps to new_url for each @url.
ABSTRACT: Must be implemented by a child class.
Dequeue one URL
Dequeue upto $count URLs.
Empties all the queues.
In Delay URLAlloc modules, returns number of seconds until next URL is ready,
Returns the number of URLs queued.
Delay the URLs in the keys of %urls by the amount of seconds in values of %urls. Only URLAlloc implementations that implement delay handling will actually delay the URLs. Other implemetation will just enqueue the URLs to the back of the queues.
$Revision: 1.12 $