QueueServiceStatistics Class

  • java.lang.Object
    • com.azure.storage.queue.models.QueueServiceStatistics

Implements

public final class QueueServiceStatistics
implements XmlSerializable<QueueServiceStatistics>

Stats for the storage service.

Constructor Summary

Constructor Description
QueueServiceStatistics()

Creates an instance of QueueServiceStatistics class.

Method Summary

Modifier and Type Method and Description
static QueueServiceStatistics fromXml(XmlReader xmlReader)

Reads an instance of QueueServiceStatistics from the XmlReader.

static QueueServiceStatistics fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of QueueServiceStatistics from the XmlReader.

GeoReplication getGeoReplication()

Get the geoReplication property: Geo-Replication information for the Secondary Storage Service.

QueueServiceStatistics setGeoReplication(GeoReplication geoReplication)

Set the geoReplication property: Geo-Replication information for the Secondary Storage Service.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

QueueServiceStatistics

public QueueServiceStatistics()

Creates an instance of QueueServiceStatistics class.

Method Details

fromXml

public static QueueServiceStatistics fromXml(XmlReader xmlReader)

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(XmlReader xmlReader, String rootElementName)

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.

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 XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to