Skip to content

Commit 862caf6

Browse files
committed
Added Aws::SQS::QueuePoller.
1 parent 7bc5dfb commit 862caf6

File tree

5 files changed

+908
-5
lines changed

5 files changed

+908
-5
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Unreleased Changes
22
------------------
33

4+
* Feature - Aws::SQS - Added `Aws::SQS::QueuePoller`, a utility class for
5+
long polling and processing messages from a queue.
6+
7+
```ruby
8+
poller = Aws::SQS::QueuePoller.new(queue_url)
9+
poller.poll do |msg|
10+
puts msg.body
11+
end # message deleted here
12+
```
13+
14+
See the [API reference documentation](http://docs.aws.amazon.com/sdkforruby/api/Aws/SQS/QueuePoller.html) for more examples.
15+
416
* Issue - Query Protocol - No longer returning nil for empty maps in
517
query responses. `Aws::SQS::Client#get_queue_attributes` will always
618
have a hash a `resp.attributes` instead of a possible `nil` value.

FEATURE_REQUESTS.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ The version 1 SDK has support for generating a pre-signed POST request. This ret
6868

6969
See [related GitHub issue #720](https://github.com/aws/aws-sdk-ruby/issues/720).
7070

71-
### Amazon SQS Queue Poller
72-
73-
Add a utility class that can poll an Amazon SQS Queue for messages. This should do a better than than the version 1 SDK in handling errors raised inside the polling logic. Ideally, users should be able to fail a message, causing it to not delete, but without terminating the polling abstraction. This should be opt-in to avoid draining a queue of messages without succeeding any.
74-
7571
### Aws::ElasticBeanstalk::Client Waiters
7672

7773
There are currently no waiters for `Aws::ElasticBeanstalk::Client`. Particular useful would be environment states.
@@ -80,6 +76,6 @@ See [related GitHub issue aws/aws-sdk-core-ruby#216](https://github.com/aws/aws-
8076

8177
### Progress callbacks for Amazon S3 Object uploads
8278

83-
To enable users to track file upload process, it would be helpful to support a progress callback for `Aws::S3::Object#upload_file`.
79+
To enable users to track file upload process, it would be helpful to support a progress callback for `Aws::S3::Object#upload_file`.
8480

8581
See [related Github issue #648](https://github.com/aws/aws-sdk-ruby/issues/648#issuecomment-78246370).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module Aws
2+
module SQS
3+
4+
autoload :QueuePoller, 'aws-sdk-resources/services/sqs/queue_poller'
5+
6+
end
7+
end

0 commit comments

Comments
 (0)