1Messaging::Message::QueUusee:r:NCUoLnLt(r3i)buted Perl DMoecsusmaegnitnagt:i:oMnessage::Queue::NULL(3)
2
3
4

NAME

6       Messaging::Message::Queue::NULL - abstraction of a null message queue
7

SYNOPSIS

9         use Messaging::Message;
10         use Messaging::Message::Queue::NULL;
11
12         # create a message queue
13         $mq = Messaging::Message::Queue::NULL->new();
14
15         # add a message to the queue
16         $msg = Messaging::Message->new(body => "hello world");
17         $mq->add_message($msg);
18

DESCRIPTION

20       This module provides an abstraction of a message queue working a bit
21       like "/dev/null": it can be written to but it always appears empty.
22

METHODS

24       In addition to the standard Directory::Queue methods, the following
25       methods are available:
26
27       new(OPTIONS)
28           return a new Messaging::Message::Queue::NULL object (class method)
29
30       add_message(MESSAGE)
31           add the given message (a Messaging::Message object) to the queue,
32           this does nothing
33
34       get_message(ELEMENT)
35           get the message from the given element, this generates an error
36

SEE ALSO

38       Directory::Queue, Messaging::Message, Messaging::Message::Queue.
39

AUTHOR

41       Lionel Cons <http://cern.ch/lionel.cons>
42
43       Copyright (C) CERN 2011-2016
44
45
46
47perl v5.32.0                      2020-07-28Messaging::Message::Queue::NULL(3)
Impressum