1Messaging::Message::QueUusee:r:ZCEoRnOt(r3i)buted Perl DMoecsusmaegnitnagt:i:oMnessage::Queue::ZERO(3)
2
3
4
6 Messaging::Message::Queue::ZERO - abstraction of a message queue
7 returning empty messages
8
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
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
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
40 Directory::Queue, Messaging::Message, Messaging::Message::Queue.
41
43 Lionel Cons <http://cern.ch/lionel.cons>
44
45 Copyright (C) CERN 2011-2021
46
47
48
49perl v5.36.0 2023-01-20Messaging::Message::Queue::ZERO(3)