Daniel Lo > Proc-BackOff-0.02 > Proc::BackOff::Random

Download:
Proc-BackOff-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Proc::BackOff::Random

SYNOPSIS ^

Usage:

 use Proc::BackOff::Random;

 my $obj = Proc::BackOff::Random->new( { min => 5 , max => 100 } );
 # On N'th failure delay would be set to:
 # 1st failure  :  a random number between 5 and 100 inclusive.
 #                 (5 is a possible value)
 # 2nd failure  :  a random number between 5 and 100 inclusive.
 # 3rd failure  :  a random number between 5 and 100 inclusive.

See Proc::BackOff for further documentation.

Overloaded Methods ^

new()

Check for variables being set: min & max. If they are not set, you will get a warning and undef will be returned.

calculate_back_off()

Returns the new back off value.

Changes ^

 0.02   2007-08-12 -- Daniel Lo
        - Documentation fixes.  No code changes.

 0.01   2007-04-17 -- Daniel Lo
        - Initial Version

AUTHOR ^

Daniel Lo <daniel_lo@picturetrail.com>

LICENSE ^

Copyright (C) PictureTrail Inc. 1999-2007 Santa Clara, California, United States of America.

This code is released to the public for public use under Perl's Artisitic licence.

syntax highlighting: