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
    Constructor
    Description
    Creates an instance of MessageCountDetails class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.
    Get the deadLetterMessageCount property: Number of messages that are dead lettered.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of MessageCountDetails from the JsonReader.
    Get the scheduledMessageCount property: Number of scheduled messages.
    com.azure.json.JsonWriter
    toJson(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.
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public Long activeMessageCount()
      Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.
      Returns:
      the activeMessageCount value.
    • deadLetterMessageCount

      public Long deadLetterMessageCount()
      Get the deadLetterMessageCount property: Number of messages that are dead lettered.
      Returns:
      the deadLetterMessageCount value.
    • scheduledMessageCount

      public Long scheduledMessageCount()
      Get the scheduledMessageCount property: Number of scheduled messages.
      Returns:
      the scheduledMessageCount value.
    • transferMessageCount

      public Long transferMessageCount()
      Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.
      Returns:
      the transferMessageCount value.
    • transferDeadLetterMessageCount

      public Long 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MessageCountDetails>
      Throws:
      IOException
    • fromJson

      public static MessageCountDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.