/usr/share/perl5/MR/IProto/Request.pm is in libmr-tarantool-perl 0.0.24-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | package MR::IProto::Request;
=head1 NAME
MR::IProto::Request - request message
=head1 DESCRIPTION
Base class for all request messages.
=cut
use Mouse;
extends 'MR::IProto::Message';
has '+data' => (
lazy_build => 1,
);
=head1 PUBLIC METHODS
=over
=item key
Returns key value.
You must reimplement this method in your subclass to use this feature.
=cut
sub key {
return undef;
}
=item retry
If request retry is allowed.
=cut
sub retry {
return 0;
}
=back
=head1 PROTECTED METHODS
=over
=item key_attr
Class method which must return name of key attribute.
=item _build_data
You B<must> implement this method in you subclass to pack your object.
Returns packed data.
=cut
sub _build_data {
return '';
}
=back
=cut
no Mouse;
__PACKAGE__->meta->make_immutable();
1;
|