/** * Returns an iterable that lazy fetches messages until there are none left. * Note that this method will make multiple network calls. * * @param api * api targeted at the queue in question * @param messagesPerPage * how many messages to receive per request (current max: 10) * @param options * controls attributes and visibility options * @return an iterable that lazy fetches messages until there are none left */ public static FluentIterable<Message> receiveAllAtRate(MessageApi api, int messagesPerPage, ReceiveMessageOptions options) { return AdvanceUntilEmptyIterable.create(new MoreMessages(api, messagesPerPage, options)).concat(); }
/** * Returns an iterable that lazy fetches messages until there are none left. * Note that this method will make multiple network calls. * * @param api * api targeted at the queue in question * @param messagesPerPage * how many messages to receive per request (current max: 10) * @param options * controls attributes and visibility options * @return an iterable that lazy fetches messages until there are none left */ public static FluentIterable<Message> receiveAllAtRate(MessageApi api, int messagesPerPage, ReceiveMessageOptions options) { return AdvanceUntilEmptyIterable.create(new MoreMessages(api, messagesPerPage, options)).concat(); }
/** * Returns an iterable that lazy fetches messages until there are none left. * Note that this method will make multiple network calls. * * @param api * api targeted at the queue in question * @param messagesPerPage * how many messages to receive per request (current max: 10) * @param options * controls attributes and visibility options * @return an iterable that lazy fetches messages until there are none left */ public static FluentIterable<Message> receiveAllAtRate(MessageApi api, int messagesPerPage, ReceiveMessageOptions options) { return AdvanceUntilEmptyIterable.create(new MoreMessages(api, messagesPerPage, options)).concat(); }