MessageCountDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.servicebus.models.MessageCountDetails

Implements

public final class MessageCountDetails
implements JsonSerializable<MessageCountDetails>

Message Count Details.

Constructor Summary

Constructor Description
MessageCountDetails()

Creates an instance of MessageCountDetails class.

Method Summary

Modifier and Type Method and Description
Long activeMessageCount()

Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.

Long deadLetterMessageCount()

Get the deadLetterMessageCount property: Number of messages that are dead lettered.

static MessageCountDetails fromJson(JsonReader jsonReader)

Reads an instance of MessageCountDetails from the JsonReader.

Long scheduledMessageCount()

Get the scheduledMessageCount property: Number of scheduled messages.

JsonWriter toJson(JsonWriter jsonWriter)
Long transferDeadLetterMessageCount()

Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.

Long transferMessageCount()

Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

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.

fromJson

public static MessageCountDetails fromJson(JsonReader jsonReader)

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.

scheduledMessageCount

public Long scheduledMessageCount()

Get the scheduledMessageCount property: Number of scheduled messages.

Returns:

the scheduledMessageCount value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transferDeadLetterMessageCount

public Long transferDeadLetterMessageCount()

Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.

Returns:

the transferDeadLetterMessageCount value.

transferMessageCount

public Long transferMessageCount()

Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.

Returns:

the transferMessageCount value.

validate

public void validate()

Validates the instance.

Applies to