Alex Balhatchet > Geo-Coder-Many-0.4 > Geo::Coder::Many::Scheduler::OrderedList

Download:
Geo-Coder-Many-0.4.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Geo-Coder-Many-0.46-5

NAME ^

Geo::Coder::Many::Scheduler::OrderedList - Ordered list scheduler

DESCRIPTION ^

This is a scheduler representing a strict preferential order - it will always use the first geocoder in the list, unless it fails, in which case it'll fall back to the second in the list, and then the third, and so on.

METHODS ^

new

reset_available

Resets the list back to how it was initially set.

get_next_unique

Returns the next item in the list.

next_available

Returns zero if there are items available, and -1 if there aren't.

syntax highlighting: