Messagi...ue::NULL(3)

πŸ“¦ version 1.6.1, in epel 9

✨ NAME ✨

okay so welcome to Messagi...ue::NULL(3) β€” user-contributed Perl docs, bestie β€” and the main character here is Messaging::Message::Queue::NULL, which is literally an abstraction of a null message queue. πŸ’…


🌸 SYNOPSIS 🌸

copy-paste era, no notes:

use Messaging::Message;
use Messaging::Message::Queue::NULL;

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

# add a message to the queue
$msg = Messaging::Message->new(body => "hello world");
$mq->add_message($msg);

πŸ¦‹ DESCRIPTION πŸ¦‹

This module provides an abstraction of a message queue working a bit like /dev/null: it can be written to but it always appears empty. It's giving "void but make it message queue" energy, and honestly? iconic. 🫢


πŸ‘‘ METHODS πŸ‘‘

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

  • new(OPTIONS) β€” return a new Messaging::Message::Queue::NULL object (class method). ✨
  • add_message(MESSAGE) β€” add the given message (a Messaging::Message object) to the queue, this does nothing. Like, zero. Nada. It's giving /dev/null behaviour, and the method said "I'm just here for the vibes." πŸ’€
  • get_message(ELEMENT) β€” get the message from the given element, this generates an error. So yeah, do not expect a message back; expect drama. 😭

🌈 SEE ALSO 🌈

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


πŸ’– AUTHOR πŸ’–

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

Copyright (C) CERN 2011-2016


and that's the page, bestie β€” brought to you by perl v5.32.1, dated 2019-07-26, with the footer serving Messagi...ue::NULL(3) realness. periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from