QueueMessageItem Class
- java.
lang. Object - com.
azure. storage. queue. models. QueueMessageItem
- com.
Implements
public final class QueueMessageItem
implements XmlSerializable<QueueMessageItem>
The object returned in the QueueMessageList array when calling Get Messages on a Queue.
Constructor Summary
Constructor | Description |
---|---|
QueueMessageItem() |
Creates an instance of Queue |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Queue |
fromXml(XmlReader xmlReader)
Reads an instance of Queue |
static
Queue |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Queue |
Binary |
getBody()
Get the body property: The content of the Message. |
long |
getDequeueCount()
Get the dequeue |
Offset |
getExpirationTime()
Get the expiration |
Offset |
getInsertionTime()
Get the insertion |
String |
getMessageId()
Get the message |
String |
getMessageText()
Deprecated
use getBody() instead.
Get the message |
String |
getPopReceipt()
Get the pop |
Offset |
getTimeNextVisible()
Get the time |
Queue |
setBody(BinaryData body)
Set the body property: The content of the Message. |
Queue |
setDequeueCount(long dequeueCount)
Set the dequeue |
Queue |
setExpirationTime(OffsetDateTime expirationTime)
Set the expiration |
Queue |
setInsertionTime(OffsetDateTime insertionTime)
Set the insertion |
Queue |
setMessageId(String messageId)
Set the message |
Queue |
setMessageText(String messageText)
Deprecated
use setBody(BinaryData body) instead.
Set the message |
Queue |
setPopReceipt(String popReceipt)
Set the pop |
Queue |
setTimeNextVisible(OffsetDateTime timeNextVisible)
Set the time |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
QueueMessageItem
public QueueMessageItem()
Creates an instance of QueueMessageItem.
Method Details
fromXml
public static QueueMessageItem fromXml(XmlReader xmlReader)
Reads an instance of QueueMessageItem from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static QueueMessageItem fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of QueueMessageItem from the XmlReader.
Parameters:
Returns:
Throws:
getBody
public BinaryData getBody()
Get the body property: The content of the Message.
Returns:
getDequeueCount
public long getDequeueCount()
Get the dequeueCount property: The number of times the message has been dequeued.
Returns:
getExpirationTime
public OffsetDateTime getExpirationTime()
Get the expirationTime property: The time that the Message will expire and be automatically deleted.
Returns:
getInsertionTime
public OffsetDateTime getInsertionTime()
Get the insertionTime property: The time the Message was inserted into the Queue.
Returns:
getMessageId
public String getMessageId()
Get the messageId property: The Id of the Message.
Returns:
getMessageText
@Deprecated
public String getMessageText()
Deprecated
Get the messageText property: The content of the Message.
Returns:
getPopReceipt
public String getPopReceipt()
Get the popReceipt property: This value is required to delete the Message. If deletion fails using this popreceipt then the message has been dequeued by another client.
Returns:
getTimeNextVisible
public OffsetDateTime getTimeNextVisible()
Get the timeNextVisible property: The time that the message will again become visible in the Queue.
Returns:
setBody
public QueueMessageItem setBody(BinaryData body)
Set the body property: The content of the Message.
Parameters:
Returns:
setDequeueCount
public QueueMessageItem setDequeueCount(long dequeueCount)
Set the dequeueCount property: The number of times the message has been dequeued.
Parameters:
Returns:
setExpirationTime
public QueueMessageItem setExpirationTime(OffsetDateTime expirationTime)
Set the expirationTime property: The time that the Message will expire and be automatically deleted.
Parameters:
Returns:
setInsertionTime
public QueueMessageItem setInsertionTime(OffsetDateTime insertionTime)
Set the insertionTime property: The time the Message was inserted into the Queue.
Parameters:
Returns:
setMessageId
public QueueMessageItem setMessageId(String messageId)
Set the messageId property: The Id of the Message.
Parameters:
Returns:
setMessageText
@Deprecated
public QueueMessageItem setMessageText(String messageText)
Deprecated
Set the messageText property: The content of the Message.
Parameters:
Returns:
setPopReceipt
public QueueMessageItem setPopReceipt(String popReceipt)
Set the popReceipt property: This value is required to delete the Message. If deletion fails using this popreceipt then the message has been dequeued by another client.
Parameters:
Returns:
setTimeNextVisible
public QueueMessageItem setTimeNextVisible(OffsetDateTime timeNextVisible)
Set the timeNextVisible property: The time that the message will again become visible in the Queue.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws:
Applies to
Azure SDK for Java