Messaging::Message::Queue::NULL - abstraction of a Directory::Queue::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. It derives from the Directory::Queue::Null module that provides a generic "black hole" queue: added messages will disappear immediately so the queue will therefore always appear empty.
In addition to the methods inherited from Directory::Queue::Null, 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::Null, Messaging::Message, Messaging::Message::Queue.
Lionel Cons http://cern.ch/lionel.cons
Copyright CERN 2012
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.