Class MessageCountDetails
java.lang.Object
com.azure.resourcemanager.servicebus.models.MessageCountDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageCountDetails>
public final class MessageCountDetails
extends Object
implements com.azure.json.JsonSerializable<MessageCountDetails>
Message Count Details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the activeMessageCount property: Number of active messages in the queue, topic, or subscription.Get the deadLetterMessageCount property: Number of messages that are dead lettered.static MessageCountDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MessageCountDetails from the JsonReader.Get the scheduledMessageCount property: Number of scheduled messages.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MessageCountDetails
public MessageCountDetails()Creates an instance of MessageCountDetails class.
-
-
Method Details
-
activeMessageCount
Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.- Returns:
- the activeMessageCount value.
-
deadLetterMessageCount
Get the deadLetterMessageCount property: Number of messages that are dead lettered.- Returns:
- the deadLetterMessageCount value.
-
scheduledMessageCount
Get the scheduledMessageCount property: Number of scheduled messages.- Returns:
- the scheduledMessageCount value.
-
transferMessageCount
Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.- Returns:
- the transferMessageCount value.
-
transferDeadLetterMessageCount
Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.- Returns:
- the transferDeadLetterMessageCount value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MessageCountDetails>- Throws:
IOException
-
fromJson
Reads an instance of MessageCountDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MessageCountDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the MessageCountDetails.
-