PeekedMessageItem Class
- java.
lang. Object - com.
azure. storage. queue. models. PeekedMessageItem
- com.
public final class PeekedMessageItem
The object returned in the QueueMessageList array when calling Peek Messages on a Queue.
Constructor Summary
Constructor | Description | |
---|---|---|
PeekedMessageItem() |
Method Summary
Modifier and Type | Method and Description |
---|---|
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 |
Methods inherited from java.lang.Object
Constructor Details
PeekedMessageItem
public PeekedMessageItem()
Method Details
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für