Damien Krotkine > Action-Retry-0.12 > Action::Retry::Strategy::Linear

Download:
Action-Retry-0.12.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.12   Source   Latest Release: Action-Retry-0.23

NAME ^

Action::Retry::Strategy::Linear - Linear incrementation of sleep time strategy

VERSION ^

version 0.12

SYNOPSIS ^

To be used as strategy in Action::Retry

ATTRIBUTES ^

initial_sleep_time

  ro, Int, defaults to 1000

The number of milliseconds to wait for the first retry

multiplicator

  ro, Int, defaults to 2

Number multiplied by the last sleep time. E.g. if set to 2, the time between two retries will double. If set to 1, it'll remain constant. Defaults to 2

max_retries_number

  ro, Int|Undef, defaults to 10

The number of times we should retry before giving up. If set to undef, will retry indefinitely

max_sleep_time

  ro, Int|Undef, defaults to undef

If Action::Retry is about to sleep more than this number ( in milliseconds ), stop retrying.

AUTHOR ^

Damien "dams" Krotkine

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Damien "dams" Krotkine.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: