Commit graph

14 commits

Author SHA1 Message Date
Daniel Alberto Cañas
daffed7bcc Minimize Integer object construction
Use Integer.valueOf(int) factory method instead of new Integer(int) constructor
to take advantage of caching.
This is especially useful when creating millions of
ReceiveMessageRequests with the same options.
2014-06-24 21:48:33 -06:00
Daniel Alberto Cañas
ce8c02bdc4 Adds long polling support
Adds long polling support to receive message requests.
The option 'wait-time-seconds' has been added to the 'receive' function.
This option behaves exactly the same as the 'WaitTimeSeconds' parameter
of the ReceiveMessageRequest class in the AWS Java SDK.

The following text is shamelessly taken from the (docs
http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html):

Long polling allows the Amazon SQS service to wait until a message is
available in the queue before sending a response. This helps reduce the
amount of empty responses, thus reducing costs.

Another benefit is reducing the false empty reponses, where messages are
available in the queue but are not included in the response.
This happens when Amazon SQS uses short (standard) polling, the default
behavior, where only a subset of the servers (based on a weighted random
distribution) are queried to see if any messages are available to
include in the response. On the other hand, when long polling is
enabled, Amazon SQS queries all of the servers.
2014-06-24 21:18:06 -06:00
Tim Chagnon
382fd20418 Make :prefix a keyword argument of list-queues 2013-11-26 10:21:16 -08:00
Tim Chagnon
960c5e4966 Add optional prefix argument to list-queues 2013-11-25 21:07:09 -08:00
Kei Tsuji
21ed5eb278 Adding support for calling AmazonSQSClient. without id/password to support authentication via IAM role.
From EC2 instance with IAM Role, we can now create client like this (create-client).
2013-10-17 13:16:35 +09:00
Chas Emerick
eb2b3524ee upgrade to latest AWS SDK, tweak APIs usage to suit. 2012-10-02 08:33:05 -04:00
Chas Emerick
9b782e4817 default to Clojure 1.4.0 2012-10-02 08:33:05 -04:00
Chas Emerick
6273806597 integration tests with all supported versions of Clojure 2012-02-24 11:01:53 -05:00
Chas Emerick
d55dbb0590 Clojure 1.3.0 compatibility; use it as the default dependency, fixes gh-1 2012-02-24 11:01:53 -05:00
Chas Emerick
7ae72ff7d9 test tweaks 2012-02-24 11:01:49 -05:00
Chas Emerick
3dda6bc11a proper set of tests 2011-02-23 07:09:15 -05:00
Chas Emerick
744b458faa default to receiving no message attributes 2011-02-23 07:09:05 -05:00
Chas Emerick
a2e0919240 fix impl of set-queue-attrs 2011-02-23 07:08:38 -05:00
Chas Emerick
cab0f2fd29 Initial commit. 2011-02-18 14:10:00 -05:00