WaitStatistics Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.WaitStatistics

Implements

public final class WaitStatistics
implements JsonSerializable<WaitStatistics>

Wait statistics gathered during query batch execution.

Constructor Summary

Constructor Description
WaitStatistics()

Creates an instance of WaitStatistics class.

Method Summary

Modifier and Type Method and Description
static WaitStatistics fromJson(JsonReader jsonReader)

Reads an instance of WaitStatistics from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Long waitCount()

Get the waitCount property: Total no.

Float waitTimeMs()

Get the waitTimeMs property: Total wait time in millisecond(s).

String waitType()

Get the waitType property: Type of the Wait.

WaitStatistics withWaitCount(Long waitCount)

Set the waitCount property: Total no.

WaitStatistics withWaitTimeMs(Float waitTimeMs)

Set the waitTimeMs property: Total wait time in millisecond(s).

WaitStatistics withWaitType(String waitType)

Set the waitType property: Type of the Wait.

Methods inherited from java.lang.Object

Constructor Details

WaitStatistics

public WaitStatistics()

Creates an instance of WaitStatistics class.

Method Details

fromJson

public static WaitStatistics fromJson(JsonReader jsonReader)

Reads an instance of WaitStatistics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

waitCount

public Long waitCount()

Get the waitCount property: Total no. of waits.

Returns:

the waitCount value.

waitTimeMs

public Float waitTimeMs()

Get the waitTimeMs property: Total wait time in millisecond(s).

Returns:

the waitTimeMs value.

waitType

public String waitType()

Get the waitType property: Type of the Wait.

Returns:

the waitType value.

withWaitCount

public WaitStatistics withWaitCount(Long waitCount)

Set the waitCount property: Total no. of waits.

Parameters:

waitCount - the waitCount value to set.

Returns:

the WaitStatistics object itself.

withWaitTimeMs

public WaitStatistics withWaitTimeMs(Float waitTimeMs)

Set the waitTimeMs property: Total wait time in millisecond(s).

Parameters:

waitTimeMs - the waitTimeMs value to set.

Returns:

the WaitStatistics object itself.

withWaitType

public WaitStatistics withWaitType(String waitType)

Set the waitType property: Type of the Wait.

Parameters:

waitType - the waitType value to set.

Returns:

the WaitStatistics object itself.

Applies to