| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# |
|
2
|
|
|
|
|
|
|
# This file is part of Action-Retry |
|
3
|
|
|
|
|
|
|
# |
|
4
|
|
|
|
|
|
|
# This software is copyright (c) 2013 by Damien "dams" Krotkine. |
|
5
|
|
|
|
|
|
|
# |
|
6
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it under |
|
7
|
|
|
|
|
|
|
# the same terms as the Perl 5 programming language system itself. |
|
8
|
|
|
|
|
|
|
# |
|
9
|
|
|
|
|
|
|
package Action::Retry::Strategy; |
|
10
|
|
|
|
|
|
|
{ |
|
11
|
|
|
|
|
|
|
$Action::Retry::Strategy::VERSION = '0.24'; |
|
12
|
|
|
|
|
|
|
} |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# ABSTRACT: Srategy role that any Action::Retry strategy should consume |
|
15
|
|
|
|
|
|
|
|
|
16
|
5
|
|
|
5
|
|
90625
|
use Moo::Role; |
|
|
5
|
|
|
|
|
14
|
|
|
|
5
|
|
|
|
|
73
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
requires 'needs_to_retry'; |
|
19
|
|
|
|
|
|
|
requires 'compute_sleep_time'; |
|
20
|
|
|
|
|
|
|
requires 'next_step'; |
|
21
|
|
|
|
|
|
|
requires 'reset'; |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |