Messagi...ue::ZERO(3)

πŸ“¦ version 1.6.1, in epel 9

πŸŽ€ NAME πŸŽ€

okay so this is the User Contributed Perl Documentation page for Messaging::Message::Queue::ZERO (you might see it filed as Messagi...ue::ZERO(3)) β€” it's an 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 gives you an abstraction of a message queue that works a bit like /dev/zero: it cannot be written to, and when you read from it, it generates an infinite sequence of empty messages. No cap, that's the whole vibe. 🫢

✨ METHODS ✨

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

  • new(OPTIONS) β€” class method; returns a new Messaging::Message::Queue::ZERO object. πŸ’–
  • add_message(MESSAGE) β€” adds the given message (a Messaging::Message object) to the queue; this generates an error. 😭
  • get_message(ELEMENT) β€” gets 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


πŸ’– cute little sign-off: this page is from perl v5.32.1, dated 2019-07-26, and it's part of the User Contributed Perl Documentation situation. bye bestie! πŸ’–

πŸ“¦ where this page comes from