Group
Extension

Matches 3

Net-AMQP-RabbitMQ-Batch ( W/WH/WHISK/Net-AMQP-RabbitMQ-Batch-0.2301.tar.gz, WHISK, 2017; MetaCPAN )
Net-AMQP-RabbitMQ-Batch/verify_messages.pl ( view source; MetaCPAN )
#!/usr/bin/perl
use strict;
use warnings;
use Net::AMQP::RabbitMQ;
use Getopt::Long;
use JSON;
use Time::HiRes qw(sleep);

our $VERSION = '0.1';

my $hostname = 'localhost';
my $user = 'guest';
my $pa
connect($hostname, { user => $user, password => $password });
$mq->channel_open($channel);
my $json = JSON->new;

my $i = 0;
my $uuids = {};
while (1) {
    my $msg = $mq->get($channel, $queue, {no_ac
f (!$msg) {
        last;
    }
    printf "Got message: %s\n", $msg->{body};
    my $uuid = from_json($msg->{body})->{uuid};
    if ($uuids->{$uuid}) {
        croak("UUID $uuid already met!");
    }
Net-AMQP-RabbitMQ-Batch ( W/WH/WHISK/Net-AMQP-RabbitMQ-Batch-0.2301.tar.gz, WHISK, 2017; MetaCPAN )
Net-AMQP-RabbitMQ-Batch/process_in_batches.pl ( view source; MetaCPAN )
#!/usr/bin/perl
use strict;
use warnings;
use Carp;
use JSON;
use Getopt::Long;
use Data::Dumper;
use lib './lib';
use Net::AMQP::RabbitMQ::Batch;
use Time::HiRes qw(sleep);

our $VERSION = '0.3000';
 $msg (@$messages) {
        my $body = from_json($msg->{body});
        $body->{processed} = 1;
        my $new_msg = {
            body         => to_json($body)
        };
        push(@$new_mesage
Net-AMQP-RabbitMQ-Batch ( W/WH/WHISK/Net-AMQP-RabbitMQ-Batch-0.2301.tar.gz, WHISK, 2017; MetaCPAN )
Net-AMQP-RabbitMQ-Batch/send_messages.pl ( view source; MetaCPAN )
#!/usr/bin/perl
use strict;
use warnings;
use Net::AMQP::RabbitMQ;
use Getopt::Long;
use JSON;
use Time::HiRes qw(sleep);

our $VERSION = '0.1';

my $hostname = 'localhost';
my $user = 'guest';
my $pa
 $i = 0;
while ($i < $messages) {
    my $uuid = time() * rand(10000) + $i;
    my $msg_body = to_json({msg => sprintf("Message number %d", $i), uuid => $uuid});
    $mq->publish($channel, $queue, $ms

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.