Class QueueServiceStatistics

java.lang.Object
com.azure.storage.queue.models.QueueServiceStatistics
All Implemented Interfaces:
com.azure.xml.XmlSerializable<QueueServiceStatistics>

public final class QueueServiceStatistics extends Object implements com.azure.xml.XmlSerializable<QueueServiceStatistics>
Stats for the storage service.
  • Constructor Details

    • QueueServiceStatistics

      public QueueServiceStatistics()
      Creates an instance of QueueServiceStatistics class.
  • Method Details

    • getGeoReplication

      public GeoReplication getGeoReplication()
      Get the geoReplication property: Geo-Replication information for the Secondary Storage Service.
      Returns:
      the geoReplication value.
    • setGeoReplication

      public QueueServiceStatistics setGeoReplication(GeoReplication geoReplication)
      Set the geoReplication property: Geo-Replication information for the Secondary Storage Service.
      Parameters:
      geoReplication - the geoReplication value to set.
      Returns:
      the QueueServiceStatistics object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<QueueServiceStatistics>
      Throws:
      XMLStreamException
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<QueueServiceStatistics>
      Throws:
      XMLStreamException
    • fromXml

      public static QueueServiceStatistics fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of QueueServiceStatistics from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of QueueServiceStatistics if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the QueueServiceStatistics.
    • fromXml

      public static QueueServiceStatistics fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of QueueServiceStatistics from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.
      Returns:
      An instance of QueueServiceStatistics if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the QueueServiceStatistics.