NAME

Proc::BackOff::Exponential

SYNOPSIS

Usage:

use Proc::BackOff::Exponential;

my $obj = Proc::BackOff::Exponential->new( { base => 2 , exponent=> 'count' } );
# sequence would be
# 1st failure  :  2^1 = 2
# 2nd failure  :  2^2 = 4
# 3nd failure  :  2^3 = 8

# or

my $obj = Proc::BackOff::Exponential->new( { base => 'count' , exponent=> 2 } );
# sequence would be
# 1st failure  :  1^2 = 1
# 2nd failure  :  2^2 = 4
# 3nd failure  :  3^2 = 9

See BackOff for further documentation.

Overloaded Methods

new()

Check for variables being set

Required: base Required: exponent

calculate_back_off()

Returns the new back off value.

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 100:

=cut found outside a pod block. Skipping to next block.