public static class PeekMessagesResult.QueueMessage extends Object
PeekMessagesResult.QueueMessage instance contains a copy of the queue message data
in the storage service as of the time the message was requested.| Constructor and Description |
|---|
QueueMessage() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDequeueCount()
Gets the number of times this queue message has been retrieved with a
list messages operation.
|
Date |
getExpirationDate()
Gets the
Date when this message will expire and be
automatically removed from the queue. |
Date |
getInsertionDate()
Gets the
Date when this message was added to the queue. |
String |
getMessageId()
Gets the message ID for the message in the queue.
|
String |
getMessageText()
Gets the
String containing the content of the queue message. |
void |
setDequeueCount(int dequeueCount)
Reserved for internal use.
|
void |
setExpirationDate(Date expirationDate)
Reserved for internal use.
|
void |
setInsertionDate(Date insertionDate)
Reserved for internal use.
|
void |
setMessageId(String messageId)
Reserved for internal use.
|
void |
setMessageText(String messageText)
Reserved for internal use.
|
public String getMessageId()
String containing the message ID.public void setMessageId(String messageId)
messageId - A String containing the message ID.public Date getInsertionDate()
Date when this message was added to the queue.Date when this message was added to the queue.public void setInsertionDate(Date insertionDate)
insertionDate - The Date when this message was added to the queue.public Date getExpirationDate()
Date when this message will expire and be
automatically removed from the queue.Date when this message will expire.public void setExpirationDate(Date expirationDate)
expirationDate - The Date when this message will expire.public int getDequeueCount()
public void setDequeueCount(int dequeueCount)
dequeueCount - The number of times this queue message has been retrieved.public String getMessageText()
String containing the content of the queue message.String containing the content of the queue message.public void setMessageText(String messageText)
String containing the
content of the message. This method is invoked by the API as part of
the response generation from the Queue Service REST API operation to
set the value with the queue message content returned by the server.messageText - A String containing the content of the message./**
* 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.
*/