Partilhar via


TableServiceGeoReplication Class

  • java.lang.Object
    • com.azure.data.tables.models.TableServiceGeoReplication

Implements

public final class TableServiceGeoReplication
implements XmlSerializable<TableServiceGeoReplication>

The TableServiceGeoReplication model.

Constructor Summary

Constructor Description
TableServiceGeoReplication(TableServiceGeoReplicationStatus status, OffsetDateTime lastSyncTime)

Creates an instance of TableServiceGeoReplication class.

Method Summary

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

Reads an instance of TableServiceGeoReplication from the XmlReader.

static TableServiceGeoReplication fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of TableServiceGeoReplication from the XmlReader.

OffsetDateTime getLastSyncTime()

Get the lastSyncTime property: A GMT date/time value, to the second.

TableServiceGeoReplicationStatus getStatus()

Get the status property: The status of the secondary location.

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

Methods inherited from java.lang.Object

Constructor Details

TableServiceGeoReplication

public TableServiceGeoReplication(TableServiceGeoReplicationStatus status, OffsetDateTime lastSyncTime)

Creates an instance of TableServiceGeoReplication class.

Parameters:

status - The status of the secondary location.
lastSyncTime - A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads.

Method Details

fromXml

public static TableServiceGeoReplication fromXml(XmlReader xmlReader)

Reads an instance of TableServiceGeoReplication from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of TableServiceGeoReplication 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 TableServiceGeoReplication.

fromXml

public static TableServiceGeoReplication fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of TableServiceGeoReplication 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 TableServiceGeoReplication 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 TableServiceGeoReplication.

getLastSyncTime

public OffsetDateTime getLastSyncTime()

Get the lastSyncTime property: A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads.

Returns:

the lastSyncTime value.

getStatus

public TableServiceGeoReplicationStatus getStatus()

Get the status property: The status of the secondary location.

Returns:

the status value.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to