Net::MessageBus::Message - Pure Perl generic message queue
Version 0.08
This module implements a pure perl message bus message object
Example :
use Net::MessageBus::Message; my $foo = Net::MessageBus::Message->new( type => 'event', payload => { some => 'complex strcture' }, sender => 'script1', group => 'backend', ); ...
Creates a new Net::MessageBus::Message object
Arguments
type = A type assigned to the message
payload = A complex perl structure / scalar but it cannot contain any objects
sender = the name of the Net::MessageBus client that is sending the message
group = the group to which this message belongs
my $foo = Net::MessageBus::Message->new( type => 'event', payload => { some => 'complex strcture' }, sender => 'script1', group => 'backend', );
Returns the type of the message
my $type = $Message->type();
Returns the sender of the message
my $type = $Message->sender();
Returns the group of the message
my $type = $Message->group();
Returns the payload of the message
my $type = $Message->payload();
Serializes the message for transport
Horea Gligan, <gliganh at gmail.com>
<gliganh at gmail.com>
Please report any bugs or feature requests to bug-net-MessageBus at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-MessageBus. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-MessageBus at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::MessageBus::Message
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-MessageBus
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-MessageBus
CPAN Ratings
http://cpanratings.perl.org/d/Net-MessageBus
Search CPAN
http://search.cpan.org/dist/Net-MessageBus/
Copyright 2012 Horea Gligan.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Net::MessageBus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::MessageBus
CPAN shell
perl -MCPAN -e shell install Net::MessageBus
For more information on module installation, please visit the detailed CPAN module installation guide.