| 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 | 5 | ▶ | use Net::NATS2::Base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 5 | has message_count => 0; | |
| 10 | 5 | has $_ for qw(subject group sid callback client max_msgs); | |
| 11 | |||
| 12 | 2 | ▶ | sub defined_max { |
|
Subroutine
defined_max: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 2 | return defined $_[0]->{max_msgs}; | |
| 14 | } | ||
| 15 | |||
| 16 | 0 | ▶ | sub auto_unsubscribe { |
|
Subroutine
auto_unsubscribe: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 17 | 0 | my $self = shift; | |
| 18 | 0 | my ($max_msgs) = @_; | |
| 19 | 0 | $self->client->unsubscribe($self, $max_msgs); | |
| 20 | 0 | return $self; | |
| 21 | } | ||
| 22 | |||
| 23 | 0 | ▶ | sub unsubscribe { |
|
Subroutine
unsubscribe: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 24 | 0 | my $self = shift; | |
| 25 | 0 | $self->client->unsubscribe($self); | |
| 26 | 0 | return $self; | |
| 27 | } | ||
| 28 | |||
| 29 | 5 | 1; | |