Class SQS


  • @Beta
    public class SQS
    extends Object
    Utilities for interacting with SQS
    • Constructor Detail

      • SQS

        public SQS()
    • Method Detail

      • receiveAllAtRate

        public static com.google.common.collect.FluentIterable<Message> receiveAllAtRate​(MessageApi api,
                                                                                         int messagesPerPage,
                                                                                         ReceiveMessageOptions options)
        Returns an iterable that lazy fetches messages until there are none left. Note that this method will make multiple network calls.
        Parameters:
        api - api targeted at the queue in question
        messagesPerPage - how many messages to receive per request (current max: 10)
        options - controls attributes and visibility options
        Returns:
        an iterable that lazy fetches messages until there are none left