Passing/Role/HasTimeoutAndReconnectAfter.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 19 / 19 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Passing/Role/HasHostnameAndPort.pm ↑ Summary Passing/Role/HasUsernameAndPassword.pm »
1 package Message::Passing::Role::HasTimeoutAndReconnectAfter;
2 3 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use MooX::Types::MooseLike::Base qw/ Num /;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 has timeout => (
7 isa => Num,
8 is => 'ro',
9 1 ▶ default => sub { 30 },
Subroutine __ANON__: called CC=1 SCAR=0.0
10 3 );
11  
12 has reconnect_after => (
13 isa => Num,
14 is => 'ro',
15 1 ▶ default => sub { 2 },
Subroutine __ANON__: called CC=1 SCAR=0.0
16 3 );
17  
18 3 1;
19  
20 =head1 NAME
21  
22 Message::Passing::Role::HasTimeoutAndReconnectAfter
23  
24 =head1 DESCRIPTION
25  
26 Adds a C<timeout> and a C<reconnect_after> attributes to your class.
27  
28 =head1 METHODS
29  
30 =head2 timeout
31  
32 =head2 reconnect_after
33  
34 =head1 AUTHOR, COPYRIGHT AND LICENSE
35  
36 See L<Message::Passing>.
37  
38 =cut
« Passing/Role/HasHostnameAndPort.pm ↑ Summary Passing/Role/HasUsernameAndPassword.pm »