public class ListMessagesResult extends Object
QueueContract.listMessages(String) and
QueueContract.listMessages(String, ListMessagesOptions).
See the Get Messages documentation on MSDN for details of the underlying Queue Service REST API operation.
| Modifier and Type | Class and Description |
|---|---|
static class |
ListMessagesResult.QueueMessage
Represents a message in the queue returned by the server.
|
| Constructor and Description |
|---|
ListMessagesResult() |
| Modifier and Type | Method and Description |
|---|---|
List<ListMessagesResult.QueueMessage> |
getQueueMessages()
Gets the list of queue messages returned by a
QueueContract
.listMessages request. |
void |
setQueueMessages(List<ListMessagesResult.QueueMessage> queueMessages)
Reserved for internal use.
|
public List<ListMessagesResult.QueueMessage> getQueueMessages()
QueueContract
.listMessages request. The queue messages returned have their
visibility timeout set to allow for processing by the client. The client
must delete the messages once processing is complete, or they will become
visible in the queue when the visibility timeout period is over.List of ListMessagesResult.QueueMessage instances representing the
messages returned by the request.public void setQueueMessages(List<ListMessagesResult.QueueMessage> queueMessages)
QueueContract .listMessages request. This method is
invoked by the API as part of the response generation from the Queue
Service REST API operation to set the value from the queue message list
returned by the server.queueMessages - A List of ListMessagesResult.QueueMessage instances representing
the messages returned by the request./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/