The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

  use Messaging::Message;
  use Messaging::Message::Queue::ZERO;

  # create a message queue
  $mq = Messaging::Message::Queue::ZERO->new();

  # get a message to the queue
  $msg = $mq->get_message("");

DESCRIPTION

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

METHODS

In addition to the standard Directory::Queue methods, the following methods are available:

new(OPTIONS)

return a new Messaging::Message::Queue::ZERO object (class method)

add_message(MESSAGE)

add the given message (a Messaging::Message object) to the queue, this generates an error

get_message(ELEMENT)

get the message from the given element, this returns an empty message

SEE ALSO

Directory::Queue, Messaging::Message, Messaging::Message::Queue.

AUTHOR

Lionel Cons http://cern.ch/lionel.cons

Copyright (C) CERN 2011-2016