Message::Passing::Role::HasAConnection - Role for components which have a connection
Provides a standard ->connection_manager attribute for inputs or outputs which need to make a network connection before they can send or receive messages.
The connection manager object is assumed to have the ->subscribe_to_connect method (from Message::Passing::Role::Connection).
->subscribe_to_connect
Will be called at BUILD (i.e. object construction) time, should return a connection manager object (i.e. an object that ->subscribe_to_connect can be called on).
Called by the connection manager when a connection is made.
Usually used to do things like subscribe to queues..
The client received an error or otherwise disconnected.
Is wrapped to build the connection manager object.
To install Message::Passing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Message::Passing
CPAN shell
perl -MCPAN -e shell install Message::Passing
For more information on module installation, please visit the detailed CPAN module installation guide.