Group
Extension

Matches 2

Amazon-SQS-ProducerConsumer ( N/NI/NICWOLFF/Amazon-SQS-ProducerConsumer-0.04.tar.gz, NICWOLFF, 2013; MetaCPAN )
Amazon-SQS-ProducerConsumer/lib/Amazon/SQS/Producer.pm ( view source; MetaCPAN )
ducer;

use 5.006;
use strict;
use warnings;

use base 'Amazon::SQS::ProducerConsumer::Base';
use JSON::XS;

use constant MAX_RETRIES => 3;

=head1 NAME

Amazon::SQS::Producer - Publish messages to an
 a consumer if this is the first message this Publisher has published. The message body will be a JSON representaton of the method's argument hash. If the first argument is a reference to a hash it wi
t;
	my $old_data = shift if ref $_[0];
	my $data = { %$old_data, @_ };
	my $encoded_data = encode_json $data;

	say "Queueing message: $encoded_data" if $data->{_debug};
	return if $data->{_test};

	m
Amazon-SQS-ProducerConsumer ( N/NI/NICWOLFF/Amazon-SQS-ProducerConsumer-0.04.tar.gz, NICWOLFF, 2013; MetaCPAN )
Amazon-SQS-ProducerConsumer/lib/Amazon/SQS/Consumer.pm ( view source; MetaCPAN )
sumer;

use 5.006;
use strict;
use warnings;

use base 'Amazon::SQS::ProducerConsumer::Base';
use JSON::XS;
use Encode qw( encode_utf8 is_utf8 );

use constant {
	DEFAULT_N_MESSAGES => 10,
	DEFAULT_WA
tf8( $body ) if is_utf8( $body );
				$object = decode_json $body;
			};
			if ( $@ ) {
				say "left bad message in queue; could not decode JSON from $message->{Body}: $@";
			} else {
				return $ob

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