| 1 | package Net::NATS2::Subscription; | ||||||||||
| 2 | |||||||||||
| 3 | 5 | ▶ | use v5.10; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | sub new { | ||||||||||
| 8 | 2 | ▶ | my $class = shift; | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 9 | 2 | return bless {@_}, $class; | |||||||||
| 10 | } | ||||||||||
| 11 | |||||||||||
| 12 | sub subject { | ||||||||||
| 13 | 1 | ▶ | my $self = shift; | ||||||||
|
Subroutine
subject: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 14 | 1 | ▶ | $self->{subject} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 1 | return $self->{subject}; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | sub group { | ||||||||||
| 19 | 1 | ▶ | my $self = shift; | ||||||||
|
Subroutine
group: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 20 | 1 | ▶ | $self->{group} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 1 | return $self->{group}; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | sub sid { | ||||||||||
| 25 | 1 | ▶ | my $self = shift; | ||||||||
|
Subroutine
sid: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||
| 26 | 1 | ▶ | $self->{sid} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | 1 | return $self->{sid}; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | sub callback { | ||||||||||
| 31 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
callback: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 32 | 0 | ▶ | $self->{callback} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | 0 | return $self->{callback}; | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | sub client { | ||||||||||
| 37 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
client: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 38 | 0 | ▶ | $self->{client} = shift if @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 39 | 0 | return $self->{client}; | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | sub message_count : lvalue { $_[0]->{message_count} } | ||||||||
|
Subroutine
message_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 43 | 1 | ▶ | sub max_msgs : lvalue { $_[0]->{max_msgs} } | ||||||||
|
Subroutine
max_msgs: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 44 | |||||||||||
| 45 | sub defined_max { | ||||||||||
| 46 | 2 | ▶ | return defined $_[0]->{max_msgs}; | ||||||||
|
Subroutine
defined_max: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | sub auto_unsubscribe { | ||||||||||
| 50 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
auto_unsubscribe: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 51 | 0 | my ($max_msgs) = @_; | |||||||||
| 52 | 0 | $self->client->unsubscribe($self, $max_msgs); | |||||||||
| 53 | 0 | return $self; | |||||||||
| 54 | } | ||||||||||
| 55 | |||||||||||
| 56 | sub unsubscribe { | ||||||||||
| 57 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
unsubscribe: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 58 | 0 | $self->client->unsubscribe($self); | |||||||||
| 59 | 0 | return $self; | |||||||||
| 60 | } | ||||||||||
| 61 | |||||||||||
| 62 | 5 | 1; | |||||||||