NAME
Amazon::SQS::ProducerConsumer::Base - Perl interface to the Amazon Simple Queue Service (SQS) environment
VERSION
Version 0.04
SYNOPSIS
use Amazon::SQS::ProducerConsumer::Base;
my $sqs = new Amazon::SQS::ProducerConsumer::Base
AWSAccessKeyId => 'PUBLIC_KEY_HERE',
SecretAccessKey => 'SECRET_KEY_HERE';
# Create a queue
my $queueURL = $sqs->create_queue( QueueName => 'TestQueue' );
# Send a message to that queue
my $messageID = $sqs->send_message( Queue => $queueURL, MessageBody => 'Test message' );
# Get a message from that queue
my $message = $sqs->receive_message( Queue => $queueURL );
print 'Message ID: ', $message->{MessageId}, "\n";
print 'Message: ', $message->{MessageBody}, "\n";
# Delete the message you got
my $message = $sqs->delete_message( Queue => $queueURL, MessageId => $message->{MessageId} );
If an error occurs in communicating with SQS, the return value will be undef and $sqs->{error} will be populated with the message.
AUTHOR
Nic Wolff, <nic@angel.net>
BUGS
Please report any bugs or feature requests to bug-amazon-sqs-producerconsumer at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Amazon-SQS-ProducerConsumer. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Amazon::SQS::ProducerConsumer::Base
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Amazon-SQS-ProducerConsumer
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2011 Nic Wolff.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.