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

NAME

6       Messaging::Message::Queue::ZERO - abstraction of a message queue
7       returning empty messages
8

SYNOPSIS

10         use Messaging::Message;
11         use Messaging::Message::Queue::ZERO;
12
13         # create a message queue
14         $mq = Messaging::Message::Queue::ZERO->new();
15
16         # get a message to the queue
17         $msg = $mq->get_message("");
18

DESCRIPTION

20       This module provides an abstraction of a message queue working a bit
21       like "/dev/zero": it cannot be written to and, when read, it generates
22       an infinite sequence of empty messages.
23

METHODS

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

SEE ALSO

40       Directory::Queue, Messaging::Message, Messaging::Message::Queue.
41

AUTHOR

43       Lionel Cons <http://cern.ch/lionel.cons>
44
45       Copyright (C) CERN 2011-2016
46
47
48
49perl v5.32.1                      2021-01-27Messaging::Message::Queue::ZERO(3)
Impressum