Messaging::Message::Queue::NULL - abstraction of a null message queue
use Messaging::Message; use Messaging::Message::Queue::NULL; # create a message queue $mq = Messaging::Message::Queue::NULL->new(); # add a message to the queue $msg = Messaging::Message->new(body => "hello world"); $mq->add_message($msg);
This module provides an abstraction of a message queue working a bit like /dev/null: it can be written to but it always appears empty.
/dev/null
In addition to the standard Directory::Queue methods, the following methods are available:
return a new Messaging::Message::Queue::NULL object (class method)
add the given message (a Messaging::Message object) to the queue, this does nothing
get the message from the given element, this generates an error
Directory::Queue, Messaging::Message, Messaging::Message::Queue.
Lionel Cons http://cern.ch/lionel.cons
Copyright (C) CERN 2011-2016
To install Messaging::Message, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Messaging::Message
CPAN shell
perl -MCPAN -e shell install Messaging::Message
For more information on module installation, please visit the detailed CPAN module installation guide.