AMQP -- Base class for AMQP utilities
package AMQP::MyUtility; use Mojo::Base 'AMQP'; my $util = AMQP::MyUtility->new; $util->server('amqp://amqp.perl.org:5672/test');
The AMQP class provides the basic functionality common to all AMQP utility classes.
server($url)
Configures all of the connection settings based on an AMQP url. The format of which is:
amqp://username:password@host:port/vhost
All of the elements of the url are required if you are not using the defaults. The default settings are:
amqp://guest:guest@localhost:5672/
Same as Perl.
Dave Goehrig <dave@dloh.org>
To install AMQP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AMQP
CPAN shell
perl -MCPAN -e shell install AMQP
For more information on module installation, please visit the detailed CPAN module installation guide.