public
Description: A command-line client for Amazon Web Services
Homepage: http://rubyforge.org/projects/cliaws
Clone URL: git://github.com/francois/cliaws.git
Search Repo:
New Cliaws::Sqs#fetch method, to grab multiple messages in one swoop.
francois (author)
Wed Apr 30 08:33:27 -0700 2008
commit  63c7a9755d0a75500ee78138e1b06e8e5b1eaa03
tree    df6f387e132cbf47362d02ccfbb8584d8e3bbff0
parent  fdfa3e508e98841c8842b287b20b60bcfde3ed04
...
22
23
24
 
 
 
 
 
25
26
27
...
22
23
24
25
26
27
28
29
30
31
32
0
@@ -22,6 +22,11 @@
0
       q(qname).pop.to_s
0
     end
0
 
0
+ # Fetches a number of messages.
0
+ def fetch(qname, size)
0
+ q(qname).receive_messages(size)
0
+ end
0
+
0
     # Returns the size of the queue.
0
     def size(qname)
0
       q(qname).size

Comments

    No one has commented yet.