你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PeekedMessageItem Class
- java.
lang. Object - com.
azure. storage. queue. models. PeekedMessageItem
- com.
Implements
public final class PeekedMessageItem
implements XmlSerializable<PeekedMessageItem>
The object returned in the QueueMessageList array when calling Peek Messages on a Queue.
Constructor Summary
Constructor | Description |
---|---|
PeekedMessageItem() |
Creates an instance of Peeked |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Peeked |
fromXml(XmlReader xmlReader)
Reads an instance of Peeked |
static
Peeked |
fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of Peeked |
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 |
Peeked |
setBody(BinaryData body)
Set the body property: The content of the Message. |
Peeked |
setDequeueCount(long dequeueCount)
Set the dequeue |
Peeked |
setExpirationTime(OffsetDateTime expirationTime)
Set the expiration |
Peeked |
setInsertionTime(OffsetDateTime insertionTime)
Set the insertion |
Peeked |
setMessageId(String messageId)
Set the message |
Peeked |
setMessageText(String messageText)
Deprecated
use setBody(BinaryData body) instead.
Set the message |
Xml |
toXml(XmlWriter xmlWriter) |
Xml |
toXml(XmlWriter xmlWriter, String rootElementName) |
Methods inherited from java.lang.Object
Constructor Details
PeekedMessageItem
public PeekedMessageItem()
Creates an instance of PeekedMessageItem.
Method Details
fromXml
public static PeekedMessageItem fromXml(XmlReader xmlReader)
Reads an instance of PeekedMessageItem from the XmlReader.
Parameters:
Returns:
Throws:
fromXml
public static PeekedMessageItem fromXml(XmlReader xmlReader, String rootElementName)
Reads an instance of PeekedMessageItem 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:
setBody
public PeekedMessageItem setBody(BinaryData body)
Set the body property: The content of the Message.
Parameters:
Returns:
setDequeueCount
public PeekedMessageItem setDequeueCount(long dequeueCount)
Set the dequeueCount property: The number of times the message has been dequeued.
Parameters:
Returns:
setExpirationTime
public PeekedMessageItem setExpirationTime(OffsetDateTime expirationTime)
Set the expirationTime property: The time that the Message will expire and be automatically deleted.
Parameters:
Returns:
setInsertionTime
public PeekedMessageItem setInsertionTime(OffsetDateTime insertionTime)
Set the insertionTime property: The time the Message was inserted into the Queue.
Parameters:
Returns:
setMessageId
public PeekedMessageItem setMessageId(String messageId)
Set the messageId property: The Id of the Message.
Parameters:
Returns:
setMessageText
@Deprecated
public PeekedMessageItem setMessageText(String messageText)
Deprecated
Set the messageText property: The content of the Message.
Parameters:
Returns:
toXml
toXml
public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)
Parameters:
Throws: