Net::Async::AMQP::RPC::Server - server RPC handling
version 2.000
Provides a basic server implementation for RPC handling.
Declare a queue
Declare the RPC exchange
Bind our queue to the exchange
Start a consumer on the queue
For each message, process via subclass-defined handlers and send a reply to the default ('') exchange with the reply_to as the routing key
Returns the server Net::Async::AMQP::Queue instance.
Returns a JSON::MaybeXS object, for ->encode and ->decode support. This will load JSON::MaybeXS on first call.
Called when there is a message to process. Receives several named parameters:
Applies configuration:
json_handler - defines the JSON handlers for each type
handler - defines default handlers
active, client_queue, connected, consumer, consumer_channel, exchange, future, mq, on_message, publisher_channel, queue_name, reply, routing_key, server_queue
add_child, adopt_future, can_event, children, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, new, notifier_name, parent, remove_child, remove_from_parent
Tom Molesworth <TEAM@cpan.org>
Licensed under the same terms as Perl itself, with additional licensing terms for the MQ spec to be found in share/amqp0-9-1.extended.xml ('a worldwide, perpetual, royalty-free, nontransferable, nonexclusive license to (i) copy, display, distribute and implement the Advanced Messaging Queue Protocol ("AMQP") Specification').
share/amqp0-9-1.extended.xml
To install Net::Async::AMQP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Async::AMQP
CPAN shell
perl -MCPAN -e shell install Net::Async::AMQP
For more information on module installation, please visit the detailed CPAN module installation guide.