Zing::Queue - Message Queue
Generic Message Queue
use Zing::Queue; my $queue = Zing::Queue->new(name => 'tasks'); # $queue->recv;
This package provides a general-purpose message queue abstraction.
This package inherits behaviors from:
Zing::PubSub
This package uses type constraints from:
Zing::Types
This package implements the following methods:
recv() : Maybe[HashRef]
The recv method receives a single new message from the channel.
# given: synopsis $queue->recv;
# given: synopsis $queue->send({ restart => { after => 'cleanup' }}); $queue->recv;
send(HashRef $value) : Int
The send method sends a new message to the queue and returns the message count.
# given: synopsis $queue->send({ restart => { after => 'cleanup' }});
# given: synopsis $queue->drop; $queue->send({ restart => { after => 'cleanup' }});
size() : Int
The size method returns the number of messages in the queue.
# given: synopsis my $size = $queue->size;
term() : Str
The term method generates a term (safe string) for the queue.
# given: synopsis $queue->term;
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Zing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zing
CPAN shell
perl -MCPAN -e shell install Zing
For more information on module installation, please visit the detailed CPAN module installation guide.