Class SubscriptionRuntimeProperties
java.lang.Object
com.azure.messaging.servicebus.administration.models.SubscriptionRuntimeProperties
Runtime properties about a subscription.
-
Constructor Summary
ConstructorDescriptionSubscriptionRuntimeProperties
(SubscriptionProperties subscriptionProperties) Creates a new instance with runtime properties extracted from the given SubscriptionDescription. -
Method Summary
Modifier and TypeMethodDescriptionGets the last time the subscription was accessed.int
Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.Gets the exact time the subscription was created.int
Get the deadLetterMessageCount property: Number of messages that are dead lettered.Gets the name of the subscription.Gets the name of the topic this subscription is associated with.long
Gets the number of messages in the subscription.int
Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.int
Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.Gets the exact time the subscription was updated.
-
Constructor Details
-
SubscriptionRuntimeProperties
Creates a new instance with runtime properties extracted from the given SubscriptionDescription.- Parameters:
subscriptionProperties
- Subscription description to extract runtime properties from.- Throws:
NullPointerException
- ifsubscriptionDescription
is null.
-
-
Method Details
-
getAccessedAt
Gets the last time the subscription was accessed.- Returns:
- The last time the subscription was accessed.
-
getActiveMessageCount
public int getActiveMessageCount()Get the activeMessageCount property: Number of active messages in the queue, topic, or subscription.- Returns:
- the activeMessageCount value.
-
getCreatedAt
Gets the exact time the subscription was created.- Returns:
- The exact time the subscription was created.
-
getDeadLetterMessageCount
public int getDeadLetterMessageCount()Get the deadLetterMessageCount property: Number of messages that are dead lettered.- Returns:
- the deadLetterMessageCount value.
-
getTotalMessageCount
public long getTotalMessageCount()Gets the number of messages in the subscription.- Returns:
- The number of messages in the subscription.
-
getTransferDeadLetterMessageCount
public int getTransferDeadLetterMessageCount()Get the transferDeadLetterMessageCount property: Number of messages transferred into dead letters.- Returns:
- the transferDeadLetterMessageCount value.
-
getTransferMessageCount
public int getTransferMessageCount()Get the transferMessageCount property: Number of messages transferred to another queue, topic, or subscription.- Returns:
- the transferMessageCount value.
-
getSubscriptionName
Gets the name of the subscription.- Returns:
- The name of the subscription.
-
getTopicName
Gets the name of the topic this subscription is associated with.- Returns:
- The name of the topic this subscription is associated with.
-
getUpdatedAt
Gets the exact time the subscription was updated.- Returns:
- The exact time the subscription was updated.
-